summaryrefslogtreecommitdiffstats
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r--libavcodec/fft.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index f060992..079d2d6 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -57,9 +57,9 @@ int fft_init(FFTContext *s, int nbits, int inverse)
#if defined(HAVE_MMX)
has_vectors = mm_support() & MM_SSE;
-#else
- /* XXX: should also use mm_support() ? */
- has_vectors = has_altivec() & MM_ALTIVEC;
+#endif
+#if defined(HAVE_ALTIVEC)
+ has_vectors = mm_support() & MM_ALTIVEC;
#endif
if (has_vectors) {
int np, nblocks, np2, l;
OpenPOWER on IntegriCloud