avcodec/mpeg12dec: Fix invalid shift in mpeg2_fast_decode_block_intra()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 5 Dec 2019 21:35:03 +0000 (22:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 11 Mar 2020 22:51:36 +0000 (23:51 +0100)
commitc40df2166c7925fc81e1ef22563c2e32124cf1d6
tree14a1122f54143c0eb60bb24f52b14424ae120f9d
parent5f8c38345247be4baa6d6f0b4ef5f5ce94c1ba7d
avcodec/mpeg12dec: Fix invalid shift in mpeg2_fast_decode_block_intra()

Fixes: left shift of negative value -695
Fixes: 19232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5702856963522560
Fixes: 19555/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG1VIDEO_fuzzer-5741218147598336

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c