[Ffmpeg-cvslog] r5570 - trunk/libavcodec/fft.c
banan
subversion
Sun Jul 2 04:05:35 CEST 2006
Author: banan
Date: Sun Jul 2 04:05:35 2006
New Revision: 5570
Modified:
trunk/libavcodec/fft.c
Log:
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.
Modified: trunk/libavcodec/fft.c
==============================================================================
--- trunk/libavcodec/fft.c (original)
+++ trunk/libavcodec/fft.c Sun Jul 2 04:05:35 2006
@@ -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;
More information about the ffmpeg-cvslog
mailing list