summaryrefslogtreecommitdiff
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2003-01-11 20:51:03 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-01-11 20:51:03 +0000
commite629ab68a7ed341ab7f92b7d18c73509429453f3 (patch)
tree86c5c43cb5b636349d692490cf1fb41cd2199c0b /libavcodec/fft.c
parentf3ec2d46bae60984cb9d0a26e94a2cc298b4f06d (diff)
altivec jumbo patch by (Romain Dolbeau <dolbeaur at club-internet dot fr>)
Originally committed as revision 1448 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 f060992f47..079d2d6a6e 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;