diff --git a/libavcodec/aacdec_fixed.c b/libavcodec/aacdec_fixed.c index 875ef582f4..f71f458b78 100644 --- a/libavcodec/aacdec_fixed.c +++ b/libavcodec/aacdec_fixed.c @@ -170,7 +170,11 @@ static void subband_scale(int *dst, int *src, int scale, int offset, int len) s = offset - (s >> 2); - if (s > 0) { + if (s > 31) { + for (i=0; i 0) { round = 1 << (s-1); for (i=0; i> 32);