mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 03:32:50 +00:00
Fix compilation on powerpc with --disable-altivec
in case altivec is disabled, even compilation of code using altivec keywords or asm must be avoided. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30869 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
39e9706f63
commit
26dbd2fc7c
@ -1142,7 +1142,7 @@ static inline void monoblack2Y(uint8_t *dst, const uint8_t *src, long width, uin
|
||||
#endif
|
||||
|
||||
#if ARCH_PPC
|
||||
#if HAVE_ALTIVEC || CONFIG_RUNTIME_CPUDETECT
|
||||
#if HAVE_ALTIVEC
|
||||
#define COMPILE_ALTIVEC
|
||||
#endif
|
||||
#endif //ARCH_PPC
|
||||
@ -1245,7 +1245,7 @@ SwsFunc ff_getSwsFunc(SwsContext *c)
|
||||
}
|
||||
|
||||
#else
|
||||
#if ARCH_PPC
|
||||
#if ARCH_PPC && COMPILE_ALTIVEC
|
||||
if (flags & SWS_CPU_CAPS_ALTIVEC) {
|
||||
sws_init_swScale_altivec(c);
|
||||
return swScale_altivec;
|
||||
|
Loading…
Reference in New Issue
Block a user