changeset 29442:89e415f4071f

Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
author ramiro
date Sun, 09 Aug 2009 15:34:57 +0000
parents 3b88f0acdc0b
children c812ae703e3d
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sun Aug 09 15:04:17 2009 +0000
+++ b/libswscale/swscale.c	Sun Aug 09 15:34:57 2009 +0000
@@ -2853,7 +2853,7 @@
                    (flags&SWS_BICUBLIN) ? (flags|SWS_BILINEAR) : flags,
                    srcFilter->chrV, dstFilter->chrV, c->param);
 
-#if HAVE_ALTIVEC
+#ifdef COMPILE_ALTIVEC
         c->vYCoeffsBank = av_malloc(sizeof (vector signed short)*c->vLumFilterSize*c->dstH);
         c->vCCoeffsBank = av_malloc(sizeof (vector signed short)*c->vChrFilterSize*c->chrDstH);
 
@@ -3487,7 +3487,7 @@
     av_freep(&c->vChrFilter);
     av_freep(&c->hLumFilter);
     av_freep(&c->hChrFilter);
-#if HAVE_ALTIVEC
+#ifdef COMPILE_ALTIVEC
     av_freep(&c->vYCoeffsBank);
     av_freep(&c->vCCoeffsBank);
 #endif