avcodec/jpeglsdec: force pal8 only once
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 10 May 2021 19:36:18 +0000 (21:36 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Jun 2021 20:35:36 +0000 (22:35 +0200)
commit864d1ef2fc88c300613a5a9f1465f98f3559110c
tree0a81db8e551d7b14b91e9f55f45722153a68b0ae
parent06d23c6f3f72c66364f6f0d2ab2eeac55daab6a8
avcodec/jpeglsdec: force pal8 only once

Fixes: Infinite loop
Fixes: 33958/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_THP_fuzzer-6590264069193728
Fixes: 33981/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5343224173559808
Fixes: 33986/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MJPEG_fuzzer-6598815122587648
Fixes: 34001/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SMVJPEG_fuzzer-6171098111672320

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