[FFmpeg-devel] [PATCH] Fix deactivation of AltiVec in libswscale

Diego Biurrun diego
Wed Apr 30 18:39:45 CEST 2008


On Tue, Apr 29, 2008 at 12:26:05PM +0200, Felix Paul K?hne wrote:
>
> the attached patch fixes the deactivation of AltiVec for libswscale. The 
> current HEAD code still tries to compile AltiVec code in this library if  
> --disable-altivec is given, which leads to compilation errors on 
> non-declarations of AltiVec-specific types and functions.
>
> --- swscale.c	(revision 26515)
> +++ swscale.c	(working copy)
> @@ -880,7 +880,7 @@
>  
>  #ifdef ARCH_POWERPC
> -#if (defined (HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
> +#if (defined (HAVE_ALTIVEC)) && defined (CONFIG_GPL)
>  #define COMPILE_ALTIVEC
>  #endif //HAVE_ALTIVEC
>  #endif //ARCH_POWERPC

This looks incorrect.  Why should ALTIVEC not be enabled for
RUNTIME_CPUDETECT?

Diego




More information about the ffmpeg-devel mailing list