[FFmpeg-devel] [PATCH]Show rc_max_rate if bitrate is not set

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jul 25 10:03:55 CEST 2013


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

> > +++ b/libavformat/utils.c
> >  <at>  <at>  -2211,6 +2211,9
> >              st = ic->streams[i];
> >              if (st->codec->bit_rate > 0)
> >              bit_rate += st->codec->bit_rate;
> > +            else if (st->codec->rc_max_rate > 0) {
> > +                bit_rate += st->codec->rc_max_rate;
> > +            }
> 
> iam not sure about this, this could cause problems

I thought so.

Is the libavcodec part ok?

Carl Eugen



More information about the ffmpeg-devel mailing list