diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-21 04:28:46 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-21 04:28:46 +0000 |
commit | 75807fe26e0d347e2f3e239af9baa4cf8dc421ca (patch) | |
tree | b82b035ee439945f421eb832f79a79222d6c1ce5 /libavcodec | |
parent | 98bf48430932ccd082b583af57becea164b8c24c (diff) | |
download | ffmpeg-75807fe26e0d347e2f3e239af9baa4cf8dc421ca.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mjpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c index dffd989469..a232b2664f 100644 --- a/libavcodec/mjpeg.c +++ b/libavcodec/mjpeg.c @@ -2039,6 +2039,7 @@ static int mjpeg_decode_frame(AVCodecContext *avctx, return -1; break; case EOI: + s->cur_scan = 0; if ((s->buggy_avid && !s->interlaced) || s->restart_interval) break; eoi_parser: |