avcodec/mpeg12dec: Do not put mpeg_f_code into an invalid state on error return
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 31 Aug 2021 18:15:09 +0000 (20:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Oct 2021 21:19:39 +0000 (23:19 +0200)
commit02fd9353f2a1268c0739103545537f89b9de0c92
tree59c67f75bd8eee47a85f44bc2949dbfd66d897ab
parentc524a8b4bed30b80cb70fa1e5e579f7199ffa45e
avcodec/mpeg12dec: Do not put mpeg_f_code into an invalid state on error return

Fixes: invalid shift
Fixes: 37018/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MPEG2VIDEO_fuzzer-5290280902328320

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 5a95abcce4d93f979e4b53f2220f7a54edd03312)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg12dec.c