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>
Sun, 24 Mar 2019 09:38:52 +0000 (10:38 +0100)
commitd2fd2921e3427918cfc91a45a96d044079461e69
tree70f1029c7281de2eaa718b535aa969444f76c45b
parent2d825946a3970e566fa41829eb758f94169c4a0e
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