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>
Sun, 17 Jun 2018 23:16:03 +0000 (01:16 +0200)
commita6db663a31cea5e358b3c38cd3a40f22166b1c43
treec784dca2c5a697dfc141734d102d107616a2e6fb
parent205e93fa0d2b66e6e84576542e17bfba36e309a9
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>
(cherry picked from commit 9033920bec9ccf17de205fc17c2b330906b200f5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cinepak.c