avcodec/hq_hqa: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 19:53:09 +0000 (21:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 09:51:38 +0000 (11:51 +0200)
commit3e3db69193809d5c1844b0e49f9f8da181492133
treec6743b84cf20a3abb0f6f836c84641a9a7604d24
parent16f8e50f86ce6c9944f31045dae9639baaadf444
avcodec/hq_hqa: Use ff_set_dimensions()

Fixes: 15530/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HQ_HQA_fuzzer-5637370344374272
Fixes: signed integer overflow: 65312 * 65312 cannot be represented in type 'int'

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