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>
This commit is contained in:
committed by
Michael Niedermayer
parent
309171bea9
commit
206167a295
@@ -76,14 +76,17 @@ static void synth_filter_##opt(FFTContext *imdct, \
|
|||||||
*synth_buf_offset = (*synth_buf_offset - 32) & 511; \
|
*synth_buf_offset = (*synth_buf_offset - 32) & 511; \
|
||||||
} \
|
} \
|
||||||
|
|
||||||
|
#if HAVE_YASM
|
||||||
#if ARCH_X86_32
|
#if ARCH_X86_32
|
||||||
SYNTH_FILTER_FUNC(sse)
|
SYNTH_FILTER_FUNC(sse)
|
||||||
#endif
|
#endif
|
||||||
SYNTH_FILTER_FUNC(sse2)
|
SYNTH_FILTER_FUNC(sse2)
|
||||||
SYNTH_FILTER_FUNC(avx)
|
SYNTH_FILTER_FUNC(avx)
|
||||||
|
#endif
|
||||||
|
|
||||||
av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
|
av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
|
||||||
{
|
{
|
||||||
|
#if HAVE_YASM
|
||||||
int cpu_flags = av_get_cpu_flags();
|
int cpu_flags = av_get_cpu_flags();
|
||||||
|
|
||||||
#if ARCH_X86_32
|
#if ARCH_X86_32
|
||||||
@@ -97,4 +100,5 @@ av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
|
|||||||
if (EXTERNAL_AVX(cpu_flags)) {
|
if (EXTERNAL_AVX(cpu_flags)) {
|
||||||
s->synth_filter_float = synth_filter_avx;
|
s->synth_filter_float = synth_filter_avx;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user