avcodec/mjpegdec: Check for odd progressive RGB
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Jul 2018 14:28:14 +0000 (16:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 7 Jul 2018 23:37:11 +0000 (01:37 +0200)
commit9fc60cebe42e6e492b6e1a7bcc479796ee42c3ca
treeb7f943afc51f1ebc702741b718454acc104e9bef
parentcb21af2844158397fcbb21baae4eeaeceec8ac02
avcodec/mjpegdec: Check for odd progressive RGB

Fixes: out of array access
Fixes: 9225/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEGLS_fuzzer-5684770334834688

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 ee1e3ca5eb1ec7d34e925d129c893e33847ee0b7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c