Commit b61097fe authored by Michael Niedermayer's avatar Michael Niedermayer

mjpegdec: reset restart_count on progressive scans

Fixes Ticket2068
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ae2b51ac
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment