OSDN Git Service

AVPicture has 4 planes, not 3
authorLuca Abeni <lucabe72@email.it>
Mon, 30 Oct 2006 10:15:37 +0000 (10:15 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 30 Oct 2006 10:15:37 +0000 (10:15 +0000)
Originally committed as revision 6838 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/imgresample.c

index 84336ef..82a1d95 100644 (file)
@@ -727,7 +727,7 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
     uint8_t *buf1 = NULL, *buf2 = NULL;
     enum PixelFormat current_pix_fmt;
 
-    for (i = 0; i < 3; i++) {
+    for (i = 0; i < 4; i++) {
         src_pict.data[i] = src[i];
         src_pict.linesize[i] = srcStride[i];
         dst_pict.data[i] = dst[i];