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, 1 Feb 2017 00:36:50 +0000 (01:36 +0100)
commit3782656631fa8262528c07794acf7e9c2aab000d
tree3cde4972234f3f1102db5b38beaf1e063701eaa8
parent8bdba1092f50d52e0af90f425811302ec91152f8
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>
libavcodec/mjpegdec.c