changeset 17632:3a67b7ce8b3b

ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)
author michael
date Thu, 16 Feb 2006 12:55:23 +0000
parents b1378adb995f
children e0ef5688cce7
files postproc/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Thu Feb 16 12:52:09 2006 +0000
+++ b/postproc/swscale.c	Thu Feb 16 12:55:23 2006 +0000
@@ -2113,7 +2113,7 @@
 
 #ifdef HAVE_ALTIVEC
 		c->vYCoeffsBank = memalign (16, sizeof (vector signed short)*c->vLumFilterSize*c->dstH);
-		c->vCCoeffsBank = memalign (16, sizeof (vector signed short)*c->vChrFilterSize*c->dstH);
+		c->vCCoeffsBank = memalign (16, sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH);
 
 		for (i=0;i<c->vLumFilterSize*c->dstH;i++) {
                   int j;
@@ -2122,7 +2122,7 @@
 		    p[j] = c->vLumFilter[i];
 		}
 
-		for (i=0;i<c->vChrFilterSize*c->dstH;i++) {
+		for (i=0;i<c->vChrFilterSize*c->chrDstH;i++) {
                   int j;
 		  short *p = (short *)&c->vCCoeffsBank[i];
 		  for (j=0;j<8;j++)