avcodec/vc1dec: Require res_sprite for wmv3images
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Aug 2019 18:04:35 +0000 (20:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 18:26:35 +0000 (20:26 +0200)
commitfd235d74282e480382a2430adc15ee2749b8abfd
tree195b7b24729233e14d242ac285840dc42d900290
parent7edcd88a3f74182bdc28dc29bd903c6c22c3c9d8
avcodec/vc1dec: Require res_sprite for wmv3images

non res_sprite leads to decoder delay which leads to assertion failure
Fixes: Assertion failure
Fixes: 16402/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3IMAGE_fuzzer-5704510034411520
Fixes: left shift of 1073741824 by 1 places cannot be represented in type 'int'
Fixes: 16425/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WMV3IMAGE_fuzzer-5692858838810624

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 9c6b4004928ef41563b0e913666f8da27fdb2399)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1dec.c