diff options
author | James Darnley <james.darnley@gmail.com> | 2010-09-10 23:41:14 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-09-10 23:41:14 +0000 |
commit | 8d39fbd6d928753f0aeec6d78448d96b2d384400 (patch) | |
tree | 42a5955ba82420f1ab57e75b1980d96f438fb6e4 /libavcodec/mpegvideo_enc.c | |
parent | 16f825085a53dc7241ef375e9bed9856435d4c16 (diff) | |
download | ffmpeg-8d39fbd6d928753f0aeec6d78448d96b2d384400.tar.gz |
Allow mpeg encoding with qscale and very low frame rate.
Patch by James Darnley, james D darnley A gmail
Originally committed as revision 25102 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 8fbd7595c1..8302dd3fac 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -356,7 +356,7 @@ av_cold int MPV_encode_init(AVCodecContext *avctx) 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; } |