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>
Fri, 3 Feb 2017 14:59:14 +0000 (15:59 +0100)
commita71d22d84dafdcb6ce33e72bca8abd501fe33438
tree8901ba5fa0ed57a511ffd316f3ff7398e216f7f2
parent44eaff5e6d659c4104b0be7ae7222e665666d315
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