ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)
authorAlan Curry <pacman@world.std.com>
Thu, 16 Feb 2006 12:55:23 +0000 (12:55 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Feb 2006 12:55:23 +0000 (12:55 +0000)
Originally committed as revision 17633 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

postproc/swscale.c

index 6f9c203..11f774d 100644 (file)
@@ -2113,7 +2113,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int
 
 #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 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int
                    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++)