]> git.sesse.net Git - ffmpeg/commitdiff
VideoBufferSize option patch by ("Henning Haaland Kulander" <hennikul at ifi dot...
authorHenning Haaland Kulander <hennikul@ifi.uio.no>
Thu, 5 Feb 2004 17:47:24 +0000 (17:47 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 5 Feb 2004 17:47:24 +0000 (17:47 +0000)
Originally committed as revision 2749 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index eb8b37d0ae7fded662b9455552a7ed9981c88822..e550d00c2550aecd7a816d70ec7e6669163258d4 100644 (file)
@@ -4061,6 +4061,11 @@ static int parse_ffconfig(const char *filename)
                     errors++;
                 }
             }
+        } else if (!strcasecmp(cmd, "VideoBufferSize")) {
+            if (stream) {
+                get_arg(arg, sizeof(arg), &p);
+                video_enc.rc_buffer_size = atoi(arg) * 1024;
+            }
         } else if (!strcasecmp(cmd, "VideoBitRateTolerance")) {
             if (stream) {
                 get_arg(arg, sizeof(arg), &p);