[FFmpeg-devel] [PATCH] ffserver: add comment about how Launch path program is created

Stefano Sabatini stefasab at gmail.com
Thu Nov 28 23:05:51 CET 2013


On date Thursday 2013-11-28 22:31:05 +0100, Clément Bœsch encoded:
> On Thu, Nov 28, 2013 at 06:34:06PM +0100, Stefano Sabatini wrote:
> > ---
> >  ffserver.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/ffserver.c b/ffserver.c
> > index 5c6db9a..d34c8a8 100644
> > --- a/ffserver.c
> > +++ b/ffserver.c
> > @@ -509,8 +509,9 @@ static void start_children(FFStream *feed)
> >                  char *slash;
> >                  int i;
> >  
> > +                /* replace "ffserver" with "ffmpeg" in the path of current program,
> > +                 * ignore user provided path */
> >                  av_strlcpy(pathname, my_program_name, sizeof(pathname));
> > -
> >                  slash = strrchr(pathname, '/');
> >                  if (!slash)
> >                      slash = pathname;
> 
> While it's relatively easy to figure out what that code does, the "why" is
> not so obvious. You might want to explain this in a sentence or two.

The problem is that, as with many other things in ffserver, I have no
ready explanation. I'll push the patch soon.
-- 
FFmpeg = Fostering and Funny Mere Political Enigmatic Ghost


More information about the ffmpeg-devel mailing list