summaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/fft_init.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <[email protected]>2012-09-01 10:59:16 +0200
committerCarl Eugen Hoyos <[email protected]>2012-09-01 10:59:16 +0200
commita26789cf9f8000a040a4f4481e0f3552cf63dc68 (patch)
treeddbaa9b84e427c4538745673c3755b05e3ef6e3d /libavcodec/x86/fft_init.c
parentd55252c33156a53dae8e1beba73b163724dec8cf (diff)
Fix compilation with yasm-0.6.2.
Diffstat (limited to 'libavcodec/x86/fft_init.c')
-rw-r--r--libavcodec/x86/fft_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/fft_init.c b/libavcodec/x86/fft_init.c
index 852c6b8d1e..f14c588e20 100644
--- a/libavcodec/x86/fft_init.c
+++ b/libavcodec/x86/fft_init.c
@@ -47,7 +47,7 @@ av_cold void ff_fft_init_mmx(FFTContext *s)
s->fft_calc = ff_fft_calc_sse;
s->fft_permutation = FF_FFT_PERM_SWAP_LSBS;
}
- if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX && s->nbits >= 5) {
+ if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX_EXTERNAL && s->nbits >= 5) {
/* AVX for SB */
s->imdct_half = ff_imdct_half_avx;
s->fft_calc = ff_fft_calc_avx;
@@ -65,7 +65,7 @@ av_cold void ff_dct_init_mmx(DCTContext *s)
s->dct32 = ff_dct32_float_sse;
if (has_vectors & AV_CPU_FLAG_SSE2 && HAVE_SSE)
s->dct32 = ff_dct32_float_sse2;
- if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX)
+ if (has_vectors & AV_CPU_FLAG_AVX && HAVE_AVX_EXTERNAL)
s->dct32 = ff_dct32_float_avx;
#endif
}