diff --git a/libavcodec/dcadsp.c b/libavcodec/dcadsp.c index 1cd2e4eddf..3d637f63ae 100644 --- a/libavcodec/dcadsp.c +++ b/libavcodec/dcadsp.c @@ -300,7 +300,7 @@ static void decor_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) int i; for (i = 0; i < len; i++) - dst[i] += src[i] * coeff + (1 << 2) >> 3; + dst[i] += (int)(src[i] * (SUINT)coeff + (1 << 2)) >> 3; } static void dmix_sub_xch_c(int32_t *dst1, int32_t *dst2,