Commit b424c6d9 authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@17633 b3059339-0415-0410-9bf9-f77b7e298cf2
parent fd3d514f
...@@ -2113,7 +2113,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int ...@@ -2113,7 +2113,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int
#ifdef HAVE_ALTIVEC #ifdef HAVE_ALTIVEC
c->vYCoeffsBank = memalign (16, sizeof (vector signed short)*c->vLumFilterSize*c->dstH); 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++) { for (i=0;i<c->vLumFilterSize*c->dstH;i++) {
int j; int j;
...@@ -2122,7 +2122,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int ...@@ -2122,7 +2122,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int
p[j] = c->vLumFilter[i]; 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; int j;
short *p = (short *)&c->vCCoeffsBank[i]; short *p = (short *)&c->vCCoeffsBank[i];
for (j=0;j<8;j++) 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