[MPlayer-dev-eng] swscale.c and Altivec compilation
Diego Biurrun
diego at biurrun.de
Fri Apr 22 13:33:45 CEST 2005
On Thu, Apr 21, 2005 at 05:55:40PM -0100, Andrea Palmatè wrote:
>
> in swscale.c file there are this lines:
>
> #ifdef ARCH_POWERPC
> if(flags & SWS_CPU_CAPS_ALTIVEC)
> return swScale_altivec;
> else
> return swScale_C;
> #endif
> return swScale_C;
> #endif
>
> but there is a problem. If I have a G4/G5 with Altivec and i don't want
> compile with altivec, the compilation phase is interrupted because
> swScale_altivec is not defined. It should be replaced with:
>
> #if defined(ARCH_POWERPC) && defined(HAVE_ALTIVEC)
> if(flags & SWS_CPU_CAPS_ALTIVEC)
> return swScale_altivec;
> else
> return swScale_C;
> #endif
> return swScale_C;
> #endif
Please provide more details of what you do and what goes wrong. I can
compile fine with --disable-altivec on OS X (PowerBook G4) ...
Diego
More information about the MPlayer-dev-eng
mailing list