Commit 165c7c42 authored by Vitor Sessak's avatar Vitor Sessak Committed by Ronald S. Bultje

Fix dct32() compilation with --disable-yasm

Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent 71cc331c
...@@ -56,11 +56,13 @@ av_cold void ff_fft_init_mmx(FFTContext *s) ...@@ -56,11 +56,13 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
#if CONFIG_DCT #if CONFIG_DCT
av_cold void ff_dct_init_mmx(DCTContext *s) av_cold void ff_dct_init_mmx(DCTContext *s)
{ {
#if HAVE_YASM
int has_vectors = av_get_cpu_flags(); int has_vectors = av_get_cpu_flags();
if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX) if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX)
s->dct32 = ff_dct32_float_avx; s->dct32 = ff_dct32_float_avx;
else if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE) else if (has_vectors & AV_CPU_FLAG_SSE && HAVE_SSE)
s->dct32 = ff_dct32_float_sse; s->dct32 = ff_dct32_float_sse;
#endif
} }
#endif #endif
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