summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/dcadsp.c2
1 files changed, 1 insertions, 1 deletions
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,