avcodec/tiff: Use ff_set_dimensions() for setting up mjpeg context dimensions

sets coded_width / coded_height too to keep them consistent with
width / height

Fixes: OOM
Fixes: 42263/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5653333619113984

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/382/head
Michael Niedermayer 3 years ago
parent d6c16f42cc
commit cfa1f0e214
Loading…
Cancel
Save