avcodec/imm4: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Nov 2018 22:07:23 +0000 (23:07 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 21 Jan 2019 06:53:25 +0000 (07:53 +0100)
commitb66152a4e5e578c731f7e59e43f4db6b77d7c6d6
tree0e0d2b08f4995f930cde323f979d29045cb9151f
parentac50246cc49add4e53d6716afd454dbe86666efd
avcodec/imm4: Use ff_set_dimensions()

Fixes: Out of memory
Fixes: 10970/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IMM4_fuzzer-5698750043914240

Reviewed-by: Paul B Mahol <onemda@gmail.com>
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 c305e134ce23b46a1164527ade3e1b7e2ecedf5f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/imm4.c