diff mjpeg.c @ 3742:9a6bbda8cf7e libavcodec

Zero number of current scan after decoding one picture. This fixes grayscale JPEG-LS decoding.
author kostya
date Thu, 21 Sep 2006 04:28:46 +0000
parents 498543867d57
children 1843a85123b7
line wrap: on
line diff
--- a/mjpeg.c	Thu Sep 21 01:08:05 2006 +0000
+++ b/mjpeg.c	Thu Sep 21 04:28:46 2006 +0000
@@ -2039,6 +2039,7 @@
                         return -1;
                     break;
                 case EOI:
+                    s->cur_scan = 0;
                     if ((s->buggy_avid && !s->interlaced) || s->restart_interval)
                         break;
 eoi_parser: