changeset 12486:077c67a3b86f libavcodec

Allow mpeg encoding with qscale and very low frame rate. Patch by James Darnley, james D darnley A gmail
author cehoyos
date Fri, 10 Sep 2010 23:41:14 +0000
parents b42e02e9bf2b
children 6cecfd898626
files mpegvideo_enc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_enc.c	Fri Sep 10 19:51:08 2010 +0000
+++ b/mpegvideo_enc.c	Fri Sep 10 23:41:14 2010 +0000
@@ -356,7 +356,7 @@
         return -1;
     }
 
-    if(avctx->bit_rate*av_q2d(avctx->time_base) > avctx->bit_rate_tolerance){
+    if(!s->fixed_qscale && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->bit_rate_tolerance){
         av_log(avctx, AV_LOG_ERROR, "bitrate tolerance too small for bitrate\n");
         return -1;
     }