Revision 247d2c96 postproc/swscale.c

View differences:

postproc/swscale.c
2113 2113

  
2114 2114
#ifdef HAVE_ALTIVEC
2115 2115
		c->vYCoeffsBank = memalign (16, sizeof (vector signed short)*c->vLumFilterSize*c->dstH);
2116
		c->vCCoeffsBank = memalign (16, sizeof (vector signed short)*c->vChrFilterSize*c->dstH);
2116
		c->vCCoeffsBank = memalign (16, sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH);
2117 2117

  
2118 2118
		for (i=0;i<c->vLumFilterSize*c->dstH;i++) {
2119 2119
                  int j;
......
2122 2122
		    p[j] = c->vLumFilter[i];
2123 2123
		}
2124 2124

  
2125
		for (i=0;i<c->vChrFilterSize*c->dstH;i++) {
2125
		for (i=0;i<c->vChrFilterSize*c->chrDstH;i++) {
2126 2126
                  int j;
2127 2127
		  short *p = (short *)&c->vCCoeffsBank[i];
2128 2128
		  for (j=0;j<8;j++)

Also available in: Unified diff