aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-03-03 20:12:22 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-05 12:01:48 +0100
commit29638d4db90d5e3fc107c1beb40808f53cc7acaa (patch)
tree26129cdcaa7d1f866de40b1f59659c8df753a941 /libavcodec
parentd03d38616278bf209e6c860d8f9f564cbc6c1780 (diff)
downloadffmpeg-29638d4db90d5e3fc107c1beb40808f53cc7acaa.tar.gz
avcodec/dcadsp: Fix 2 runtime error: signed integer overflow: -1958094138 - 1078906344 cannot be represented in type 'int'
Fixes: 722/clusterfuzz-testcase-5711268868521984 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcadsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dcadsp.c b/libavcodec/dcadsp.c
index 1503d00886..4f1e933cfb 100644
--- a/libavcodec/dcadsp.c
+++ b/libavcodec/dcadsp.c
@@ -347,7 +347,7 @@ static void dmix_scale_inv_c(int32_t *dst, int scale_inv, ptrdiff_t len)
dst[i] = mul16(dst[i], scale_inv);
}
-static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
+static void filter0(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{
int i;
@@ -355,7 +355,7 @@ static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t l
dst[i] -= mul22(src[i], coeff);
}
-static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
+static void filter1(SUINT32 *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{
int i;