avcodec/mimic: Use ff_set_dimensions() to set the dimensions
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 May 2017 15:46:56 +0000 (17:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 18 May 2017 16:08:23 +0000 (18:08 +0200)
commite434840fd4b3c854beec845f950b80bc1bf93b60
tree4dcc926d3e1a3284c84d5467e9e1c919945868de
parenta173f484b52ed63292439de5347e49bd78cad0ed
avcodec/mimic: Use ff_set_dimensions() to set the dimensions

Fixes: OOM
Fixes: 1671/clusterfuzz-testcase-minimized-4759078033162240

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mimic.c