[FFmpeg-devel] [PATCH] ljpegdec: reset restart interval for each plane of a non interleaved file.
Michael Niedermayer
michaelni at gmx.at
Sat Jan 14 23:50:08 CET 2012
Fixes Ticket907
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavcodec/mjpegdec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index d3bcb6f..ad78b4c 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -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;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list