[FFmpeg-cvslog] r29484 - trunk/libswscale/swscale.c
ramiro
subversion
Sun Aug 9 17:34:58 CEST 2009
Author: ramiro
Date: Sun Aug 9 17:34:57 2009
New Revision: 29484
Log:
Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Sun Aug 9 17:04:17 2009 (r29483)
+++ trunk/libswscale/swscale.c Sun Aug 9 17:34:57 2009 (r29484)
@@ -2853,7 +2853,7 @@ SwsContext *sws_getContext(int srcW, int
(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 @@ void sws_freeContext(SwsContext *c){
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
More information about the ffmpeg-cvslog
mailing list