[FFmpeg-cvslog] Fix dct32() compilation with --disable-yasm

Vitor Sessak git at videolan.org
Mon May 23 04:40:13 CEST 2011


ffmpeg | branch: master | Vitor Sessak <vitor1001 at gmail.com> | Sun May 22 12:04:33 2011 +0200| [165c7c420d611bfa16d999f2033619c542961926] | committer: Ronald S. Bultje

Fix dct32() compilation with --disable-yasm

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=165c7c420d611bfa16d999f2033619c542961926
---

 libavcodec/x86/fft.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/x86/fft.c b/libavcodec/x86/fft.c
index 8eef421..899f0f7 100644
--- a/libavcodec/x86/fft.c
+++ b/libavcodec/x86/fft.c
@@ -56,11 +56,13 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
 #if CONFIG_DCT
 av_cold void ff_dct_init_mmx(DCTContext *s)
 {
+#if HAVE_YASM
     int has_vectors = av_get_cpu_flags();
     if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX)
         s->dct32 = ff_dct32_float_avx;
     else if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
         s->dct32 = ff_dct32_float_sse;
+#endif
 }
 #endif
 



More information about the ffmpeg-cvslog mailing list