changeset 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 b5436ea83910
children fc613a610303
files mjpeg.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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: