1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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
This commit is contained in:
James Darnley
2010-09-10 23:41:14 +00:00
committed by Carl Eugen Hoyos
parent 16f825085a
commit 8d39fbd6d9

View File

@@ -356,7 +356,7 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
return -1; 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"); av_log(avctx, AV_LOG_ERROR, "bitrate tolerance too small for bitrate\n");
return -1; return -1;
} }