aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Curry <pacman@world.std.com>2006-02-16 12:55:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-02-16 12:55:23 +0000
commit247d2c96998f83990d82eb49f475be4a9a2bf546 (patch)
tree2c5cd6f93c9fa73cd9ea528917e22d2874db24ea
parent999bbe8367d2688cfec6aa766b3d96a53be9b6cd (diff)
downloadffmpeg-247d2c96998f83990d82eb49f475be4a9a2bf546.tar.gz
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
-rw-r--r--postproc/swscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 6f9c203a2a..11f774d99a 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -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++)