From 46026f4e5b55f82c50258b7f2be24bf3c763a173 Mon Sep 17 00:00:00 2001 From: Henning Haaland Kulander Date: Thu, 5 Feb 2004 17:47:24 +0000 Subject: [PATCH] VideoBufferSize option patch by ("Henning Haaland Kulander" ) Originally committed as revision 2749 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ffserver.c b/ffserver.c index eb8b37d0ae..e550d00c25 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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);