summaryrefslogtreecommitdiff
path: root/libavcodec/mpegaudiodec_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-02-22 21:28:08 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-02-22 22:29:03 +0100
commit5a8fec1b33f2c9da89fe565516fff24b09988dc9 (patch)
treeb5a3c0ef72a97f561e5f502ed4a53837b6398e52 /libavcodec/mpegaudiodec_template.c
parentfb5c9be82ea870fd0a7643214ebf8728d8e29991 (diff)
avcodec/mpegaudiodec_template: Fix multiple runtime error: signed integer overflow
Fixes: 648/clusterfuzz-testcase-5337961317007360 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/mpegaudiodec_template.c')
-rw-r--r--libavcodec/mpegaudiodec_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c
index 2fc01560fa..33f2a14077 100644
--- a/libavcodec/mpegaudiodec_template.c
+++ b/libavcodec/mpegaudiodec_template.c
@@ -459,7 +459,7 @@ static av_cold int decode_init(AVCodecContext * avctx)
cases. */
static void imdct12(INTFLOAT *out, INTFLOAT *in)
{
- INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
+ SUINTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
in0 = in[0*3];
in1 = in[1*3] + in[0*3];