[FFmpeg-devel] [PATCH] set bitrate from rc_max_rate for duration estimation will fix ticket #3678
Carl Eugen Hoyos
cehoyos at ag.or.at
Wed Aug 20 20:22:33 CEST 2014
Marc-Antoine Arnaud <marcantoine.arnaud <at> arkena.com> writes:
> + if (st->codec->rc_max_rate > 0) {
> + if (INT_MAX - st->codec->rc_max_rate < bit_rate) {
> + bit_rate = 0;
> + break;
> + }
> + bit_rate += st->codec->rc_max_rate;
Did you test this patch with the sample attached to
ticket #3678? I would expect that this only works
for video-only streams or am I wrong?
You could check if a video stream with rc_max_rate
but no bit_rate exists and use that information to
decide if the format bit_rate should be updated.
Carl Eugen
More information about the ffmpeg-devel
mailing list