avcodec/cdgraphics: Clear first frame only once
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Jul 2018 12:12:56 +0000 (14:12 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 23 Jul 2018 00:58:38 +0000 (02:58 +0200)
commitd134b8d85f5e8d1b0778d62455c2e80d5b2e8d66
tree044ccca96bdc31d876e048b95a2465a3f3e3879d
parentd2015e6b86d717fbedb313481145355130bd3567
avcodec/cdgraphics: Clear first frame only once

frame_number will not increase if nothing is output

Fixes: Timeout
Fixes: 9057/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDGRAPHICS_fuzzer-4844661498707968

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