Mercurial > libavcodec.hg
diff mpegvideo_enc.c @ 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 | 04e68eb1aab7 |
children | be85455cab8f |
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; }