avcodec/cdgraphics: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Mar 2019 11:51:22 +0000 (12:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Mar 2019 15:54:10 +0000 (16:54 +0100)
commit04ce4cc0728e35d908da7f5e1aa71f9adf0b65de
tree76c6699a444aab5685ceb75cb1497d1aa9989a21
parent5d208aac52538e67d76c3fdd173e24ada876ca47
avcodec/cdgraphics: Use ff_set_dimensions()

Fixes: Timeout (17 sec -> 65 milli sec)
Fixes: 13264/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CDGRAPHICS_fuzzer-5711167941509120

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