summaryrefslogtreecommitdiff
path: root/libavcodec/cfhd.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-21 17:56:34 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-22 01:54:40 +0200
commit5a950f4e32a9756391f81987246d96b6549dd447 (patch)
treeec4e03438bdb65b727169c3c91f187fbbe86a332 /libavcodec/cfhd.c
parent5cae5a1defa360da076365a786093a749d1ddf4e (diff)
downloadffmpeg-5a950f4e32a9756391f81987246d96b6549dd447.tar.gz
avcodec/cfhd: Fix undefined shift
Fixes: runtime error: left shift of negative value -1 Fixes: 2303/clusterfuzz-testcase-minimized-5529675273076736 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/cfhd.c')
-rw-r--r--libavcodec/cfhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c
index ed127de29e..2a53a23c2b 100644
--- a/libavcodec/cfhd.c
+++ b/libavcodec/cfhd.c
@@ -711,7 +711,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
output = s->plane[plane].subband[0];
for (i = 0; i < lowpass_height * 2; i++) {
for (j = 0; j < lowpass_width * 2; j++)
- output[j] <<= 2;
+ output[j] *= 4;
output += lowpass_width * 2;
}