avcodec/aacsbr_fixed: Fix integer overflow in sbr_hf_assemble()
[ffmpeg.git] / libavcodec / aacsbr_fixed.c
index 0622d2f..a256058 100644 (file)
@@ -571,7 +571,7 @@ static void sbr_hf_assemble(int Y1[38][64][2],
                 int idx = indexsine&1;
                 int A = (1-((indexsine+(kx & 1))&2));
                 int B = (A^(-idx)) + idx;
                 int idx = indexsine&1;
                 int A = (1-((indexsine+(kx & 1))&2));
                 int B = (A^(-idx)) + idx;
-                int *out = &Y1[i][kx][idx];
+                unsigned *out = &Y1[i][kx][idx];
                 int shift;
                 unsigned round;
 
                 int shift;
                 unsigned round;