OSDN Git Service

ffserver: add comment about how Launch path program is created
authorStefano Sabatini <stefasab@gmail.com>
Thu, 28 Nov 2013 17:30:03 +0000 (18:30 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 28 Nov 2013 22:13:45 +0000 (23:13 +0100)
ffserver.c

index 5c6db9a..d34c8a8 100644 (file)
@@ -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;