avcodec/dds: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 10 Aug 2019 21:09:49 +0000 (23:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Aug 2019 17:13:21 +0000 (19:13 +0200)
commit9cd1e939cf26e7a53f28cbbda22d27535981b9db
tree68deaf3eadcb35031673ded3d79fe063f101819a
parent1d72b5d2d5225dde0662a1f2083a27f86a8fdb98
avcodec/dds: Use ff_set_dimensions()

Fixes: signed integer overflow: 2082471995 * 36 cannot be represented in type 'int'
Fixes: 16025/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DDS_fuzzer-5136663778426880

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dds.c