From: bcoudurier Date: Mon, 25 May 2009 02:34:31 +0000 (+0000) Subject: honor restart interval in mjpeg, fix #861, SpectralFan.mov still decodes correctly X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/900eb48efe7969daf338a9bdc05c39f94db90a96 honor restart interval in mjpeg, fix #861, SpectralFan.mov still decodes correctly git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18937 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 9fe8b6f04..d468133a1 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -827,9 +827,8 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah, i } } } - /* (< 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