diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-02-21 18:10:25 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-02-21 18:10:25 +0000 |
commit | 391fcef9a9f6da46219559b9b0874e2721a3fb76 (patch) | |
tree | 10e14c4e4ffa772e7528793db65110e5d9e334b6 /libavcodec/mjpeg.c | |
parent | 8cba6ba97aca9bea6fd3360982bf090c5c9dc539 (diff) | |
download | ffmpeg-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.c | 3 |
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; |