[MPlayer-cvslog] CVS: main/postproc yuv2rgb_altivec.c,1.5,1.6

Diego Biurrun CVS syncmail at mplayerhq.hu
Wed Feb 8 09:16:55 CET 2006


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv27742/postproc

Modified Files:
	yuv2rgb_altivec.c 
Log Message:
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


Index: yuv2rgb_altivec.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/yuv2rgb_altivec.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- yuv2rgb_altivec.c	14 Nov 2005 00:30:37 -0000	1.5
+++ yuv2rgb_altivec.c	8 Feb 2006 08:16:53 -0000	1.6
@@ -788,17 +788,17 @@
 
   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++)




More information about the MPlayer-cvslog mailing list