mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix compilation with --disable-yasm.
This commit is contained in:
parent
bf8bb94322
commit
e6c1791b47
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user