Commit a91f2066 authored by Michael Niedermayer's avatar Michael Niedermayer

ljpegdec: reset restart interval for each plane of a non interleaved file.

Fixes Ticket907
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1843e6c8
......@@ -706,6 +706,8 @@ static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int nb_components, int p
int resync_mb_y = 0;
int resync_mb_x = 0;
s->restart_count = s->restart_interval;
av_fast_malloc(&s->ljpeg_buffer, &s->ljpeg_buffer_size,
(unsigned)s->mb_width * 4 * sizeof(s->ljpeg_buffer[0][0]));
buffer = s->ljpeg_buffer;
......
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