From 233177a4ec68bddf6df865936bc3c630d8d9ec58 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 9 Jul 2013 23:46:29 +0200 Subject: [PATCH] jpegdec: clear EOBRUN on restarts Signed-off-by: Michael Niedermayer --- libavcodec/mjpegdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 565580e8cb..dac8386037 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -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;