From 776155ca29e7dfc2578ce5f3a7881e52e1ba2d54 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 9 Jul 2013 23:43:36 +0200 Subject: [PATCH] mjpeg_decode_scan: reset restart state Fixes Ticket2082 Fixes progressive/refinement + restart jpegs Signed-off-by: Michael Niedermayer --- libavcodec/mjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 7321b7f18c..ab4a6336e7 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1029,7 +1029,7 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, av_log(s->avctx, AV_LOG_ERROR, "Can not flip image with lowres\n"); s->flipped = 0; } - + s->restart_count = 0; for (i = 0; i < nb_components; i++) { int c = s->comp_index[i]; data[c] = s->picture_ptr->data[c];