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:
parent
8cba6ba97a
commit
391fcef9a9
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user