summaryrefslogtreecommitdiff
path: root/libavcodec/mv30.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-11-14 21:10:18 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-11-21 22:09:51 +0100
commit2eb641741766e98401f2a9d9a91c7afbdcb67d4b (patch)
tree62050cde44f1d6120105f247cfeb06a98a38235e /libavcodec/mv30.c
parent8b50e8bc2975fad85e0713e05940ee9ecb5e8a18 (diff)
avcodec/mv30: Use unsigned in idct_1d()
Fixes: signed integer overflow: 2110302399 + 39074947 cannot be represented in type 'int' Fixes: 27330/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MV30_fuzzer-5664923153334272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mv30.c')
-rw-r--r--libavcodec/mv30.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mv30.c b/libavcodec/mv30.c
index 9f28199478..59088d84f8 100644
--- a/libavcodec/mv30.c
+++ b/libavcodec/mv30.c
@@ -102,7 +102,7 @@ static void get_qtable(int16_t *table, int quant, const uint8_t *quant_tab)
}
}
-static inline void idct_1d(int *blk, int step)
+static inline void idct_1d(unsigned *blk, int step)
{
const unsigned t0 = blk[0 * step] + blk[4 * step];
const unsigned t1 = blk[0 * step] - blk[4 * step];