aboutsummaryrefslogtreecommitdiffhomepage
path: root/postproc/yuv2rgb_altivec.c
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-08 08:16:53 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-08 08:16:53 +0000
commit7d56335977eb85573aa57367924fd97ba239be5c (patch)
tree59760950a2b058c57f8d94a4d53462aae23bd5c8 /postproc/yuv2rgb_altivec.c
parentec7b288ed533d7cebce6baa00a4f0d13633c2f62 (diff)
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17558 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/yuv2rgb_altivec.c')
-rw-r--r--postproc/yuv2rgb_altivec.c8
1 files 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;i<lumFilterSize*dstW;i++) {
+ for (i=0;i<lumFilterSize*c->dstH;i++) {
tmp = c->vLumFilter[i];
p = &vYCoeffsBank[i];
for (j=0;j<8;j++)
p[j] = tmp;
}
- for (i=0;i<chrFilterSize*dstW;i++) {
+ for (i=0;i<chrFilterSize*c->dstH;i++) {
tmp = c->vChrFilter[i];
p = &vCCoeffsBank[i];
for (j=0;j<8;j++)