summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2011-05-22 12:04:33 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2011-05-22 07:10:19 -0400
commit165c7c420d611bfa16d999f2033619c542961926 (patch)
treebf39aa6b30c48db484ae1b1d29ab2b75dc1312d8 /libavcodec
parent71cc331cab8d61130048f3003f2ca77cfb94e3f3 (diff)
Fix dct32() compilation with --disable-yasm
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/fft.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/fft.c b/libavcodec/x86/fft.c
index 8eef4214a2..899f0f7ad5 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