From ba9b374f8971eb3200a36be9b934f5c6e6ef590d Mon Sep 17 00:00:00 2001 From: Juanjo Date: Thu, 9 May 2002 02:33:27 +0000 Subject: [PATCH] - Changed default qmin = 3 as ffmpeg.c - Less bitrate tolerance since we are streaming. Originally committed as revision 474 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ffserver.c b/ffserver.c index 40b1d89..5d48310 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1238,12 +1238,13 @@ void add_codec(FFStream *stream, AVCodecContext *av) av->width = 160; av->height = 128; } - av->bit_rate_tolerance= 128000; - av->qmin= 5; - av->qmax= 31; - av->qcompress= 0.5; - av->qblur= 0.5; - av->max_qdiff= 3; + /* Bitrate tolerance is less for streaming */ + av->bit_rate_tolerance = av->bit_rate / 4; + av->qmin = 3; + av->qmax = 31; + av->qcompress = 0.5; + av->qblur = 0.5; + av->max_qdiff = 3; break; default: -- 2.7.4