[FFmpeg-devel] [PATCH 1/2] ffserver: Fix off by 1 error in path

Michael Niedermayer michael at niedermayer.cc
Tue Oct 24 03:38:33 EEST 2017


On Mon, Oct 23, 2017 at 10:44:07AM +0200, Clément Bœsch wrote:
> On Mon, Oct 23, 2017 at 10:42:53AM +0200, Clément Bœsch wrote:
> [...]
> > how about changing the whole chunk with (untested):
> > 
> >     prog = av_strdup(my_program_name);
> >     dirname = av_dirname(prog);
> >     pathname = *dirname ? av_asprintf("%s/%s", dirname, "ffmpeg")
> >                         : av_asprintf("ffmpeg")
> >     av_free(filepath);
>               ^^^^^^^^
>               prog

works fine, will push with this

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171024/ee661876/attachment.sig>


More information about the ffmpeg-devel mailing list