Commit 2e5ccf68 authored by banan's avatar banan

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5570 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e5503b81
...@@ -62,7 +62,11 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse) ...@@ -62,7 +62,11 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse)
int has_vectors = 0; int has_vectors = 0;
#if defined(HAVE_MMX) #if defined(HAVE_MMX)
#ifdef HAVE_MM3DNOW
has_vectors = mm_support() & (MM_3DNOW | MM_3DNOWEXT | MM_SSE | MM_SSE2); has_vectors = mm_support() & (MM_3DNOW | MM_3DNOWEXT | MM_SSE | MM_SSE2);
#else
has_vectors = mm_support() & (MM_SSE | MM_SSE2);
#endif
#endif #endif
#if defined(HAVE_ALTIVEC) && !defined(ALTIVEC_USE_REFERENCE_C_CODE) #if defined(HAVE_ALTIVEC) && !defined(ALTIVEC_USE_REFERENCE_C_CODE)
has_vectors = mm_support() & MM_ALTIVEC; has_vectors = mm_support() & MM_ALTIVEC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment