avcodec/jpeg2000: Check that codsty->log2_prec_widths/heights has been initialized
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 4 Sep 2017 20:23:26 +0000 (22:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Sep 2017 21:35:45 +0000 (23:35 +0200)
commit64e034da954125ef98fb8f9153f9706cdb8a96fe
tree27316d9fcdc80872aefaff1842cb1a9d3e253cd6
parente9f9175db60ac67e906f8ad0709129843ab41d14
avcodec/jpeg2000: Check that codsty->log2_prec_widths/heights has been initialized

Fixes: OOM
Fixes: 2225/clusterfuzz-testcase-minimized-5505632079708160

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