avcodec/jpeg2000dec: Skip DWT if nothing is coded
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 1 Dec 2018 23:35:49 +0000 (00:35 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 8 Dec 2018 16:01:03 +0000 (17:01 +0100)
commitfe0416f8a1be660ef9a38cb378a593598d74a448
tree2d401fa51e0c92accd4282d6d4ca4aad4aae4ddd
parent2bc3811c0d6b34e43a55a7541722761f548628d0
avcodec/jpeg2000dec: Skip DWT if nothing is coded

Improves speed in uncommon case

Fixes: Timeout
Fixes: 10964/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5132066034286592

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