changeset 4105:225d287b337f libavcodec

AVPicture has 4 planes, not 3
author lucabe
date Mon, 30 Oct 2006 10:15:37 +0000
parents 04ff8026d9c0
children 21aa7e801c7b
files imgresample.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/imgresample.c	Mon Oct 30 02:19:55 2006 +0000
+++ b/imgresample.c	Mon Oct 30 10:15:37 2006 +0000
@@ -727,7 +727,7 @@
     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];