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

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to