diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-11 14:34:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-11 15:23:29 +0200 |
commit | d182bb21add5466df01dedb274a708d90802cd19 (patch) | |
tree | 4f2adc3b38ccfbe11208bb6a0b5a2dc5f067c4c2 | |
parent | 295b24643ecfcdac7ce20d99a50d74d554c73d36 (diff) | |
download | ffmpeg-d182bb21add5466df01dedb274a708d90802cd19.tar.gz |
avcodec/snowdec: Fix runtime error: left shift of negative value -1
Fixes: 2197/clusterfuzz-testcase-minimized-6010716676947968
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2e44126363bc9e23093ceced5d7bde1ee4bbb338)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/snowdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index e5051c4ff7..4d50026d71 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -583,7 +583,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, for(; yq<slice_h && yq<h; yq++){ IDWTELEM * line = slice_buffer_get_line(&s->sb, yq); for(x=0; x<w; x++){ - line[x] <<= FRAC_BITS; + line[x] *= 1<<FRAC_BITS; } } } |