avcodec/aacdec_fixed: Fix undefined integer overflow in apply_independent_coupling_fi...
[ffmpeg.git] / libavcodec / aacdec_fixed.c
index e0a54ff..40363ba 100644 (file)
@@ -433,7 +433,7 @@ static void apply_independent_coupling_fixed(AACContext *ac,
     else {
       for (i = 0; i < len; i++) {
           tmp = (int)(((int64_t)src[i] * c + (int64_t)0x1000000000) >> 37);
-          dest[i] += tmp * (1 << shift);
+          dest[i] += tmp * (1U << shift);
       }
     }
 }