avcodec/vc1_block: Check the return code from vc1_decode_p_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Aug 2019 18:15:20 +0000 (20:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Aug 2019 16:34:05 +0000 (18:34 +0200)
commitfe536b6d9984d40f800a24a84032b99ebc9f680e
tree10bdc8347b6d874ec1cffd2c3e709239ae36b731
parent9c6b4004928ef41563b0e913666f8da27fdb2399
avcodec/vc1_block: Check the return code from vc1_decode_p_block()

Fixes: left shift of negative value -1
Fixes: 16424/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3_fuzzer-5656579055026176
Fixes: 16358/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5714436358144000

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