summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/fft.c')
-rw-r--r--src/libffmpeg/libavcodec/fft.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libffmpeg/libavcodec/fft.c b/src/libffmpeg/libavcodec/fft.c
index f060992f4..65eb575f3 100644
--- a/src/libffmpeg/libavcodec/fft.c
+++ b/src/libffmpeg/libavcodec/fft.c
@@ -53,13 +53,13 @@ int fft_init(FFTContext *s, int nbits, int inverse)
/* compute constant table for HAVE_SSE version */
#if (defined(HAVE_MMX) && defined(HAVE_BUILTIN_VECTOR)) || defined(HAVE_ALTIVEC)
{
- int has_vectors;
+ int has_vectors = 0;
#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) && !defined(ALTIVEC_USE_REFERENCE_C_CODE)
+ has_vectors = mm_support() & MM_ALTIVEC;
#endif
if (has_vectors) {
int np, nblocks, np2, l;