Mercurial > libavcodec.hg
changeset 9706:473fbc242b43 libavcodec
honor restart interval in mjpeg, fix #861, SpectralFan.mov still decodes correctly
author | bcoudurier |
---|---|
date | Mon, 25 May 2009 02:34:31 +0000 |
parents | 1db34b8dcf15 |
children | b69723e55653 |
files | mjpegdec.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpegdec.c Mon May 25 01:53:43 2009 +0000 +++ b/mjpegdec.c Mon May 25 02:34:31 2009 +0000 @@ -827,9 +827,8 @@ } } } - /* (< 1350) buggy workaround for Spectralfan.mov, should be fixed */ - if (s->restart_interval && (s->restart_interval < 1350) && - !--s->restart_count) { + + if (s->restart_interval && !--s->restart_count) { align_get_bits(&s->gb); skip_bits(&s->gb, 16); /* skip RSTn */ for (i=0; i<nb_components; i++) /* reset dc */