[FFmpeg-devel] [PATCH] ac3enc: check snr_offset of 0 before failing in cbr_bit_allocation().

Reimar Döffinger Reimar.Doeffinger
Sat Mar 5 12:18:26 CET 2011


On Fri, Mar 04, 2011 at 03:25:15PM -0500, Justin Ruggles wrote:
> -    if (snr_offset < 0)
> -        return AVERROR(EINVAL);
> +    if (snr_offset < 0) {
> +        snr_offset = 0;
> +        if (bit_alloc(s, snr_offset) > bits_left)

You just assigned it 0, so why use the variable instead of 0 directly?



More information about the ffmpeg-devel mailing list