mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mjpeg_decode_scan: reset restart state
Fixes Ticket2082 Fixes progressive/refinement + restart jpegs Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e9be4675b8
commit
776155ca29
@ -1029,7 +1029,7 @@ static int mjpeg_decode_scan(MJpegDecodeContext *s, int nb_components, int Ah,
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Can not flip image with lowres\n");
|
||||
s->flipped = 0;
|
||||
}
|
||||
|
||||
s->restart_count = 0;
|
||||
for (i = 0; i < nb_components; i++) {
|
||||
int c = s->comp_index[i];
|
||||
data[c] = s->picture_ptr->data[c];
|
||||
|
Loading…
Reference in New Issue
Block a user