X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmlpdsp.c;h=12bef3a721d7bff0254d95113a1d41f81d4ca009;hb=b0a29d88c83facec70f2a0a8941733f88ddde416;hp=32a4503b64ebe5596c97ac4bec55ce3a42879995;hpb=bad70b7af6b909691f5389e14eb7d0c03db10af9;p=ffmpeg diff --git a/libavcodec/mlpdsp.c b/libavcodec/mlpdsp.c index 32a4503b64e..12bef3a721d 100644 --- a/libavcodec/mlpdsp.c +++ b/libavcodec/mlpdsp.c @@ -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; }