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

Michael Niedermayer michaelni at gmx.at
Thu Jul 25 10:24:02 CEST 2013


On Thu, Jul 25, 2013 at 08:03:55AM +0000, Carl Eugen Hoyos wrote:
> 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?

should be ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130725/f3c3839d/attachment.asc>


More information about the ffmpeg-devel mailing list