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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit6d03495c70547e170ac26cafb16a66324aedc719
tree88496c79bd6a3c34526c241d82239beb3ba5d148
parent13d16a7b9963a0fd750c608d8eaf4c903ec0ee2b
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>
(cherry picked from commit 64e034da954125ef98fb8f9153f9706cdb8a96fe)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000.c