[FFmpeg-cvslog] r25102 - trunk/libavcodec/mpegvideo_enc.c
cehoyos
subversion
Sat Sep 11 01:41:14 CEST 2010
Author: cehoyos
Date: Sat Sep 11 01:41:14 2010
New Revision: 25102
Log:
Allow mpeg encoding with qscale and very low frame rate.
Patch by James Darnley, james D darnley A gmail
Modified:
trunk/libavcodec/mpegvideo_enc.c
Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c Sat Sep 11 01:29:07 2010 (r25101)
+++ trunk/libavcodec/mpegvideo_enc.c Sat Sep 11 01:41:14 2010 (r25102)
@@ -356,7 +356,7 @@ av_cold int MPV_encode_init(AVCodecConte
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;
}
More information about the ffmpeg-cvslog
mailing list