avcodec/mjpegdec: Restore non bayer checks in ljpeg_decode_rgb_scan()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Sep 2019 19:13:11 +0000 (21:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 13 Sep 2019 19:53:27 +0000 (21:53 +0200)
commit3b5ce76b1a68430f07645eaebe77946116977dbb
treee0303953e27da091959c30f550f6edbc2a2aa2d1
parent2006e5ccb6db3d4fd97096d8a1d0ba18f708f5fe
avcodec/mjpegdec: Restore non bayer checks in ljpeg_decode_rgb_scan()

Fixes: out of array write
Fixes: 17088/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5654877765632000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c