diff options
author | James Almer <jamrial@gmail.com> | 2014-03-04 05:47:38 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-04 22:47:28 +0100 |
commit | 206167a295a5c28cec3c38f7308835b0b7e0618f (patch) | |
tree | aec3d67be63dbcf28b1207ee99c897cb1ee812f3 /libavcodec/x86 | |
parent | 309171bea9cd7f1213cd7ed178e5c7a032ab9a4b (diff) | |
download | ffmpeg-206167a295a5c28cec3c38f7308835b0b7e0618f.tar.gz |
x86/synth_filter: add missing HAVE_YASM guard
Should fix compilation failures with --disable-yasm on some compilers
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/dcadsp_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/x86/dcadsp_init.c b/libavcodec/x86/dcadsp_init.c index 2e5c1530a2..832b33531f 100644 --- a/libavcodec/x86/dcadsp_init.c +++ b/libavcodec/x86/dcadsp_init.c @@ -76,14 +76,17 @@ static void synth_filter_##opt(FFTContext *imdct, \ *synth_buf_offset = (*synth_buf_offset - 32) & 511; \ } \ +#if HAVE_YASM #if ARCH_X86_32 SYNTH_FILTER_FUNC(sse) #endif SYNTH_FILTER_FUNC(sse2) SYNTH_FILTER_FUNC(avx) +#endif av_cold void ff_synth_filter_init_x86(SynthFilterContext *s) { +#if HAVE_YASM int cpu_flags = av_get_cpu_flags(); #if ARCH_X86_32 @@ -97,4 +100,5 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s) if (EXTERNAL_AVX(cpu_flags)) { s->synth_filter_float = synth_filter_avx; } +#endif } |