avcodec/mjpegdec: Check for for the bitstream end in mjpeg_decode_scan_progressive_ac()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 1 Feb 2017 00:32:37 +0000 (01:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Feb 2017 19:32:01 +0000 (20:32 +0100)
commite23768b8ffc3d17af1c0cac33ea9c8b3a6a50437
treee68d43042e73008919fa6ff9f8b86b14c6483611
parent197e4693f634d9e61eb61851e217d1b15a9d481b
avcodec/mjpegdec: Check for for the bitstream end in mjpeg_decode_scan_progressive_ac()

Fixes timeout
Fixes: 496/clusterfuzz-testcase-5805083497332736

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 3782656631fa8262528c07794acf7e9c2aab000d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c