]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mlpdsp.c
avfilter/vf_scale: store the offset in a local variable before adding it
[ffmpeg] / libavcodec / mlpdsp.c
index 32a4503b64ebe5596c97ac4bec55ce3a42879995..12bef3a721d7bff0254d95113a1d41f81d4ca009 100644 (file)
@@ -79,7 +79,7 @@ void ff_mlp_rematrix_channel(int32_t *samples,
 
         if (matrix_noise_shift) {
             index &= access_unit_size_pow2 - 1;
-            accum += noise_buffer[index] << (matrix_noise_shift + 7);
+            accum += noise_buffer[index] * (1 << (matrix_noise_shift + 7));
             index += index2;
         }