1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-04-02 20:35:37 +02:00

100l: forgot to reset LS mode on new frame

Originally committed as revision 8053 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2007-02-21 18:10:25 +00:00
parent 8cba6ba97a
commit 391fcef9a9

View File

@ -2128,18 +2128,21 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
break; break;
case SOF0: case SOF0:
s->lossless=0; s->lossless=0;
s->ls=0;
s->progressive=0; s->progressive=0;
if (mjpeg_decode_sof(s) < 0) if (mjpeg_decode_sof(s) < 0)
return -1; return -1;
break; break;
case SOF2: case SOF2:
s->lossless=0; s->lossless=0;
s->ls=0;
s->progressive=1; s->progressive=1;
if (mjpeg_decode_sof(s) < 0) if (mjpeg_decode_sof(s) < 0)
return -1; return -1;
break; break;
case SOF3: case SOF3:
s->lossless=1; s->lossless=1;
s->ls=0;
s->progressive=0; s->progressive=0;
if (mjpeg_decode_sof(s) < 0) if (mjpeg_decode_sof(s) < 0)
return -1; return -1;