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, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit4e9e1ab815c525471bf51f31e05a708bd6c74a82
tree85564ef5c0c2c59568b086c451d017d3c82f23d4
parent02f4e846d2883871a2bb19175875f58e1d700cc2
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