[FFmpeg-devel] [PATCH] Allow mpeg encoding with qscale and very low frame rate

Carl Eugen Hoyos cehoyos
Sat Sep 11 01:44:57 CEST 2010


Michael Niedermayer <michaelni <at> gmx.at> writes:

> > --- 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){

> 
> ok

Patch applied.

Carl Eugen




More information about the ffmpeg-devel mailing list