avcodec/bethsoftvideo: Check block_type
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Feb 2019 22:39:44 +0000 (23:39 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commit6abc6acd50ae02e0e9d77557fab53a665c46aeb9
tree96d51b1dd90ed841e40e535b8ead26a9944b0347
parent7a25b3192de6f91e2ae721ede46f6a5a2f48a550
avcodec/bethsoftvideo: Check block_type

Fixes: Timeout (17 seconds -> 1 second)
Fixes: 13184/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BETHSOFTVID_fuzzer-5711446296494080

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