Make Launch more appropriate with support for full paths for the ffmpeg binary
authorAlex Beregszaszi <alex@rtfs.hu>
Sun, 13 Nov 2005 01:45:13 +0000 (01:45 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sun, 13 Nov 2005 01:45:13 +0000 (01:45 +0000)
Originally committed as revision 4693 to svn://svn.ffmpeg.org/ffmpeg/trunk

doc/ffserver.conf
ffserver.c

index e7eee0d17c75d91243b61a1b3637c235fa778399..6ce7aae4fcf42b20c63d5a0f1e0d4bbef2b193df 100644 (file)
@@ -51,7 +51,9 @@ FileMaxSize 200K
 # This marks the file as readonly and it will not be deleted or updated.
 
 # Specify launch in order to start ffmpeg automatically.
-#Launch
+# First ffmpeg must be defined with an appropriate path if needed,
+# after that options can follow, but avoid adding the http:// field
+#Launch ffmpeg
 
 # Only allow connections from localhost to the feed.
 ACL allow 127.0.0.1
index 9d34419c767c6639ee392cb0f5f1cf4a9ea36ca8..4bb95442f62c88a13438790f800453694df65532 100644 (file)
@@ -3852,10 +3852,7 @@ static int parse_ffconfig(const char *filename)
 
                 feed->child_argv = (char **) av_mallocz(64 * sizeof(char *));
 
-                feed->child_argv[0] = av_malloc(7);
-                strcpy(feed->child_argv[0], "ffmpeg");
-
-                for (i = 1; i < 62; i++) {
+                for (i = 0; i < 62; i++) {
                     char argbuf[256];
 
                     get_arg(argbuf, sizeof(argbuf), &p);