From 501beae6f9910280f386bd4b9b6dd77e9afb782f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 27 Feb 2014 21:49:46 +0100 Subject: [PATCH] avcodec/mjpegdec: fix decoding 4th plane Signed-off-by: Michael Niedermayer --- libavcodec/mjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 67b27e1474..c0792281bc 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -497,7 +497,7 @@ unk_pixfmt: s->picture_ptr->key_frame = 1; s->got_picture = 1; - for (i = 0; i < 3; i++) + for (i = 0; i < 4; i++) s->linesize[i] = s->picture_ptr->linesize[i] << s->interlaced; av_dlog(s->avctx, "%d %d %d %d %d %d\n",