Commit 391fcef9 authored by Kostya Shishkov's avatar Kostya Shishkov
Browse files

100l: forgot to reset LS mode on new frame

Originally committed as revision 8053 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8cba6ba9
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment