[FFmpeg-devel] [PATCH] Allow mpeg encoding with qscale and very low frame rate
James Darnley
james.darnley
Fri Sep 10 16:27:24 CEST 2010
On 3 September 2010 12:17, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Sep 03, 2010 at 12:58:51AM +0200, James Darnley wrote:
>> ?mpegvideo_enc.c | ? ?2 +-
>> ?1 file changed, 1 insertion(+), 1 deletion(-)
>> a00db64faec6a0b2cb268ee781c548c6f2cd2956 ?qscale_bitrate_tolerance.diff
>> diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
>> index 9f8682c..b48e88f 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;
>> ? ? ?}
>
> ok
>
bump/ping
More information about the ffmpeg-devel
mailing list