diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c index 2c594c6792..b051e75709 100644 --- a/libavcodec/aacdec_fixed.c +++ b/libavcodec/aacdec_fixed.c @@ -221,7 +221,7 @@ static void noise_scale(int *coefs, int scale, int band_energy, int len) } else { s = s + 32; - round = 1 << (s-1); + round = s ? 1 << (s-1) : 0; for (i=0; i> s); coefs[i] = out * ssign;