Commit 247d2c96 authored by Alan Curry's avatar Alan Curry Committed by Michael Niedermayer

ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)

Originally committed as revision 17633 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent 999bbe83
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment