mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mjpegdec: reset restart_count on progressive scans
Fixes Ticket2068 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ae2b51acd2
commit
b61097fe0d
@ -1134,6 +1134,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
|
|||||||
if (s->interlaced && s->bottom_field)
|
if (s->interlaced && s->bottom_field)
|
||||||
data += linesize >> 1;
|
data += linesize >> 1;
|
||||||
|
|
||||||
|
s->restart_count = 0;
|
||||||
|
|
||||||
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
|
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
|
||||||
uint8_t *ptr = data + (mb_y * linesize * 8 >> s->avctx->lowres);
|
uint8_t *ptr = data + (mb_y * linesize * 8 >> s->avctx->lowres);
|
||||||
int block_idx = mb_y * s->block_stride[c];
|
int block_idx = mb_y * s->block_stride[c];
|
||||||
|
Loading…
Reference in New Issue
Block a user