[FFmpeg-cvslog] mjpegdec: reset restart_count on progressive scans
Michael Niedermayer
git at videolan.org
Thu Dec 27 17:46:48 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 27 17:39:10 2012 +0100| [b61097fe0dc20d442be4fdbaf9bd97e2769d7f43] | committer: Michael Niedermayer
mjpegdec: reset restart_count on progressive scans
Fixes Ticket2068
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b61097fe0dc20d442be4fdbaf9bd97e2769d7f43
---
libavcodec/mjpegdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 71edc91..c1712ea 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1134,6 +1134,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
if (s->interlaced && s->bottom_field)
data += linesize >> 1;
+ s->restart_count = 0;
+
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
uint8_t *ptr = data + (mb_y * linesize * 8 >> s->avctx->lowres);
int block_idx = mb_y * s->block_stride[c];
More information about the ffmpeg-cvslog
mailing list