New submission from Pavel <[email protected]>:
Some damaged pictures crash MJPEG decoder from ffmpeg.
Latest svn (july 21) crashes. Output doesn't have any messages.
ffmpeg -i 1279729383-BLUE01.jpg -f image2 -vcodec bmp out.bmp
crashes inside
/* decode block and dequantize */
static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
...
for(;;) {
UPDATE_CACHE(re, &s->gb); // << -- here
GET_VLC(code, re, &s->gb, s->vlcs[1][ac_index].table, 9, 2)
File '1279729383-BLUE01.jpg' not attached - you can download it from
https://roundup.ffmpeg.org/file992.
----------
files: 1279729383-BLUE01.jpg
messages: 11326
priority: normal
status: new
substatus: new
title: MJPEG decoder crash
type: bug
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2117>
________________________________________________