diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c index 7b5e40e484..27547667ab 100644 --- a/libavcodec/aacdec_fixed.c +++ b/libavcodec/aacdec_fixed.c @@ -415,7 +415,9 @@ static void apply_independent_coupling_fixed(AACContext *ac, c = cce_scale_fixed[gain & 7]; shift = (gain-1024) >> 3; - if (shift < 0) { + if (shift < -31) { + return; + } else if (shift < 0) { shift = -shift; round = 1 << (shift - 1);