diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-10-13 00:14:55 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-10-13 00:14:55 +0300 |
commit | c87bb9c04af804e2cd6a18110780ffb6d85109e3 (patch) | |
tree | 5e32c8d036161c006322d9c9e2cbd83ea0f5cff8 /libavcodec/ppc | |
parent | fb934f23e1b7af48f96b6ce1d105da89db9ad6f4 (diff) |
lavc/ppc/fft_init: Fix compilation on ppc64le with --disable-vsx.
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/fft_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/ppc/fft_init.c b/libavcodec/ppc/fft_init.c index 57d7c80ea4..733e58b4c9 100644 --- a/libavcodec/ppc/fft_init.c +++ b/libavcodec/ppc/fft_init.c @@ -42,7 +42,7 @@ void ff_fft_calc_altivec(FFTContext *s, FFTComplex *z); void ff_fft_calc_interleave_altivec(FFTContext *s, FFTComplex *z); #endif -#if HAVE_GNU_AS && HAVE_ALTIVEC +#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX) static void imdct_half_altivec(FFTContext *s, FFTSample *output, const FFTSample *input) { int j, k; @@ -146,11 +146,11 @@ static void imdct_calc_altivec(FFTContext *s, FFTSample *output, const FFTSample p1[k] = vec_perm(b, b, vcprm(3,2,1,0)); } } -#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && HAVE_BIGENDIAN */ +#endif /* HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX) */ av_cold void ff_fft_init_ppc(FFTContext *s) { -#if HAVE_GNU_AS && HAVE_ALTIVEC +#if HAVE_GNU_AS && HAVE_ALTIVEC && (HAVE_BIGENDIAN || HAVE_VSX) if (!PPC_ALTIVEC(av_get_cpu_flags())) return; |