aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2007-02-21 18:10:25 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2007-02-21 18:10:25 +0000
commit391fcef9a9f6da46219559b9b0874e2721a3fb76 (patch)
tree10e14c4e4ffa772e7528793db65110e5d9e334b6 /libavcodec/mjpeg.c
parent8cba6ba97aca9bea6fd3360982bf090c5c9dc539 (diff)
downloadffmpeg-391fcef9a9f6da46219559b9b0874e2721a3fb76.tar.gz
100l: forgot to reset LS mode on new frame
Originally committed as revision 8053 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c3
1 files changed, 3 insertions, 0 deletions
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;