changeset 30827:5b013ed452fb

Fix compilation on powerpc with --disable-altivec in case altivec is disabled, even compilation of code using altivec keywords or asm must be avoided.
author siretart
date Tue, 09 Mar 2010 08:07:34 +0000
parents 9f8307ec0bfa
children 5f145a3b3832
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Tue Mar 09 06:27:54 2010 +0000
+++ b/libswscale/swscale.c	Tue Mar 09 08:07:34 2010 +0000
@@ -1142,7 +1142,7 @@
 #endif
 
 #if ARCH_PPC
-#if HAVE_ALTIVEC || CONFIG_RUNTIME_CPUDETECT
+#if HAVE_ALTIVEC
 #define COMPILE_ALTIVEC
 #endif
 #endif //ARCH_PPC
@@ -1245,7 +1245,7 @@
     }
 
 #else
-#if ARCH_PPC
+#if ARCH_PPC && COMPILE_ALTIVEC
     if (flags & SWS_CPU_CAPS_ALTIVEC) {
         sws_init_swScale_altivec(c);
         return swScale_altivec;