avcodec/mjpegdec: fix decoding 4th plane
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 27 Feb 2014 20:49:46 +0000 (21:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 27 Feb 2014 20:49:46 +0000 (21:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c

index 67b27e1..c079228 100644 (file)
@@ -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",