Check whether COMPILE_ALTIVEC is defined, not if it is set to a 0/1 value.
authorDiego Biurrun <diego@biurrun.de>
Fri, 19 Mar 2010 09:57:36 +0000 (09:57 +0000)
committerDiego Biurrun <diego@biurrun.de>
Fri, 19 Mar 2010 09:57:36 +0000 (09:57 +0000)
COMPILE_ALTIVEC is never set to 1, it is just #defined.

Originally committed as revision 30937 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c

index de6eec6..1d255bc 100644 (file)
@@ -1262,7 +1262,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c)
     }
 
 #else
-#if ARCH_PPC && COMPILE_ALTIVEC
+#if ARCH_PPC && defined(COMPILE_ALTIVEC)
     if (flags & SWS_CPU_CAPS_ALTIVEC) {
         sws_init_swScale_altivec(c);
         return swScale_altivec;