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>
Sun, 8 Jul 2018 17:45:46 +0000 (19:45 +0200)
commit6d3b48f2853f95e891e2dd76ea168b437e0e44d8
treef7df5e7114ae273f12441188199b53a65ccd32b8
parentb06c67cbf329d02321a18a47d44adf834c056ee5
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