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, 3 Mar 2019 12:17:02 +0000 (13:17 +0100)
commitb8ecadec0582a1521b5d0d253376966138e6ca78
tree5c1f569fbe8af50c4ed6e0890fff328abb4f2237
parent1eb35eb50ed32c9f36b6f3e39e8058d13f693c5e
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>
libavcodec/bethsoftvideo.c