avcodec/jpeg2000dec: Skip init for component in CPRL if nothing is to be done
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 May 2018 17:11:36 +0000 (19:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:06:26 +0000 (19:06 +0200)
commit083c48e6d9dbc1c390146422ddcdc2d25278e3a4
treee3e5f0881f441313b2ed6bb445e3443f5ab852f5
parent6315215e5c0b4052f66f5f0f4311acd2031fb43c
avcodec/jpeg2000dec: Skip init for component in CPRL if nothing is to be done

Fixes: assertion failure
Fixes: 7949/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-4819602782552064

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 a96c131eb53b00de154f4773d96a3b323ea3daed)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c