From 391fcef9a9f6da46219559b9b0874e2721a3fb76 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 21 Feb 2007 18:10:25 +0000 Subject: [PATCH] 100l: forgot to reset LS mode on new frame Originally committed as revision 8053 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mjpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index 6940e0d855..e13e12cc84 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -2128,18 +2128,21 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, break; case SOF0: s->lossless=0; + s->ls=0; s->progressive=0; if (mjpeg_decode_sof(s) < 0) return -1; break; case SOF2: s->lossless=0; + s->ls=0; s->progressive=1; if (mjpeg_decode_sof(s) < 0) return -1; break; case SOF3: s->lossless=1; + s->ls=0; s->progressive=0; if (mjpeg_decode_sof(s) < 0) return -1;