[FFmpeg-cvslog] r13271 - trunk/ffserver.c

bcoudurier subversion
Sat May 24 04:19:46 CEST 2008


Author: bcoudurier
Date: Sat May 24 04:19:46 2008
New Revision: 13271

Log:
latest libavc svn requires at least this value for bit_rate_tolerance, not using av_q2d because of float

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sat May 24 04:19:46 2008
@@ -3584,7 +3584,8 @@ static void add_codec(FFStream *stream, 
         }
         /* Bitrate tolerance is less for streaming */
         if (av->bit_rate_tolerance == 0)
-            av->bit_rate_tolerance = av->bit_rate / 4;
+            av->bit_rate_tolerance = FFMAX(av->bit_rate / 4,
+                      (int64_t)av->bit_rate*av->time_base.num/av->time_base.den);
         if (av->qmin == 0)
             av->qmin = 3;
         if (av->qmax == 0)




More information about the ffmpeg-cvslog mailing list