fixed InputFormat option, which was never working
authorAlex Beregszaszi <alex@rtfs.hu>
Sun, 22 Apr 2007 17:48:23 +0000 (17:48 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Sun, 22 Apr 2007 17:48:23 +0000 (17:48 +0000)
Originally committed as revision 8784 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index f84b87f..682addc 100644 (file)
@@ -4024,6 +4024,7 @@ static int parse_ffconfig(const char *filename)
                 video_id = stream->fmt->video_codec;
             }
         } else if (!strcasecmp(cmd, "InputFormat")) {
                 video_id = stream->fmt->video_codec;
             }
         } else if (!strcasecmp(cmd, "InputFormat")) {
+            get_arg(arg, sizeof(arg), &p);
             stream->ifmt = av_find_input_format(arg);
             if (!stream->ifmt) {
                 fprintf(stderr, "%s:%d: Unknown input format: %s\n",
             stream->ifmt = av_find_input_format(arg);
             if (!stream->ifmt) {
                 fprintf(stderr, "%s:%d: Unknown input format: %s\n",