avcodec/cinepak: Skip empty frames
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 Apr 2018 00:13:43 +0000 (02:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Apr 2018 20:59:40 +0000 (22:59 +0200)
commit9033920bec9ccf17de205fc17c2b330906b200f5
tree1279bc68600c4a4aac3b64ad8f3e3219ff0f6f3b
parent2324ef1ff32e5effd6f295bca80580ae4816be0b
avcodec/cinepak: Skip empty frames

Speeds up decoding from 3 to 0.1 seconds for 6302/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CINEPAK_fuzzer-5626371985375232
Fixes: Timeout

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