Commit 75807fe2 authored by Kostya Shishkov's avatar Kostya Shishkov

Zero number of current scan after decoding one picture.

This fixes grayscale JPEG-LS decoding.

Originally committed as revision 6306 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 98bf4843
...@@ -2039,6 +2039,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, ...@@ -2039,6 +2039,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx,
return -1; return -1;
break; break;
case EOI: case EOI:
s->cur_scan = 0;
if ((s->buggy_avid && !s->interlaced) || s->restart_interval) if ((s->buggy_avid && !s->interlaced) || s->restart_interval)
break; break;
eoi_parser: eoi_parser:
......
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