jpegdec: clear EOBRUN on restarts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-07-09 23:46:29 +02:00
parent 1c032e94d0
commit 233177a4ec
1 changed files with 2 additions and 1 deletions

View File

@ -1180,7 +1180,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
s->dsp.idct_put(ptr, linesize, *block);
ptr += 8 >> s->avctx->lowres;
}
handle_rstn(s, 0);
if (handle_rstn(s, 0))
EOBRUN = 0;
}
}
return 0;