changeset 3383:769d68b12d26 libavcodec

ff_fft_init now double checks that the system has mm3dnow.h before checking if the cpu can do 3dnow at all. This bug caused amd cpu's without sse to not have a working fft function. Ie no wma, cook or vorbis decoder.
author banan
date Sun, 02 Jul 2006 02:05:35 +0000
parents b956afdc00d9
children 573fed4bf20f
files fft.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/fft.c	Sun Jul 02 01:52:40 2006 +0000
+++ b/fft.c	Sun Jul 02 02:05:35 2006 +0000
@@ -62,7 +62,11 @@
         int has_vectors = 0;
 
 #if defined(HAVE_MMX)
+#ifdef HAVE_MM3DNOW
         has_vectors = mm_support() & (MM_3DNOW | MM_3DNOWEXT | MM_SSE | MM_SSE2);
+#else
+        has_vectors = mm_support() & (MM_SSE | MM_SSE2);
+#endif
 #endif
 #if defined(HAVE_ALTIVEC) && !defined(ALTIVEC_USE_REFERENCE_C_CODE)
         has_vectors = mm_support() & MM_ALTIVEC;