On Sun, Jul 12, 2015 at 5:22 PM, Carl Eugen Hoyos <ceho...@ag.or.at> wrote: > Ganesh Ajjanagadde <gajjanagadde <at> gmail.com> writes: > >> - avio_rb32(pb); /* max bitrate */ >> - avio_rb32(pb); /* avg bitrate */ >> + st->codec->rc_max_rate = avio_rb32(pb); /* max bitrate */ >> + st->codec->bit_rate = avio_rb32(pb); /* avg bitrate */ > > The documentation states (currently!) that > these fields must not be set outside of > libavcodec for decoding. >
At least bit_rate is set by a bunch of demuxers as well, rc_max_rate probably not, but there is no harm at all in setting these. - Hendrik _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel