avcodec/jpeg2000dec: Use ff_set_dimensions()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 May 2017 11:45:29 +0000 (13:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 May 2017 11:46:09 +0000 (13:46 +0200)
commitf3da6fbff864e05e8871dd04222143abdee9e77b
tree3d311c9aa8d1e27f549e0d57cfb9a08912585634
parent718f8a01dfa301b2d21eefcd61bdd1988953d0aa
avcodec/jpeg2000dec: Use ff_set_dimensions()

Fixes: OOM
Fixes: 1890/clusterfuzz-testcase-minimized-6329019509243904

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