From be9d060d0c4f7e548bdb6ce96789b22bfd09a704 Mon Sep 17 00:00:00 2001 From: Alan Curry Date: Wed, 8 Feb 2006 08:16:53 +0000 Subject: [PATCH] vYCoeffsBank and vCCoeffsBank are allocated and initialized using incorrect sizes based on the image width instead of height. patch by Alan Curry, pacman at world dot std dot com Originally committed as revision 17558 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc --- postproc/yuv2rgb_altivec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postproc/yuv2rgb_altivec.c b/postproc/yuv2rgb_altivec.c index bb1ebeb9b6..16acc42564 100644 --- a/postproc/yuv2rgb_altivec.c +++ b/postproc/yuv2rgb_altivec.c @@ -788,17 +788,17 @@ altivec_yuv2packedX (SwsContext *c, vector signed short *YCoeffs, *CCoeffs; - vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*dstW); - vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*dstW); + vYCoeffsBank = malloc (sizeof (vector signed short)*lumFilterSize*c->dstH); + vCCoeffsBank = malloc (sizeof (vector signed short)*chrFilterSize*c->dstH); - for (i=0;idstH;i++) { tmp = c->vLumFilter[i]; p = &vYCoeffsBank[i]; for (j=0;j<8;j++) p[j] = tmp; } - for (i=0;idstH;i++) { tmp = c->vChrFilter[i]; p = &vCCoeffsBank[i]; for (j=0;j<8;j++)