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>
(cherry picked from commit 206167a295
)
Conflicts:
libavcodec/x86/dcadsp_init.c
This commit is contained in:

committed by
Michael Niedermayer

parent
a28c276b8d
commit
f253fa9552
@@ -60,6 +60,7 @@ void ff_synth_filter_inner_sse2(float *synth_buf_ptr, float synth_buf2[32],
|
||||
const float window[512],
|
||||
float out[32], intptr_t offset, float scale);
|
||||
|
||||
#if HAVE_YASM
|
||||
static void synth_filter_sse2(FFTContext *imdct,
|
||||
float *synth_buf_ptr, int *synth_buf_offset,
|
||||
float synth_buf2[32], const float window[512],
|
||||
@@ -74,12 +75,15 @@ static void synth_filter_sse2(FFTContext *imdct,
|
||||
|
||||
*synth_buf_offset = (*synth_buf_offset - 32) & 511;
|
||||
}
|
||||
#endif
|
||||
|
||||
av_cold void ff_synth_filter_init_x86(SynthFilterContext *s)
|
||||
{
|
||||
#if HAVE_YASM
|
||||
int cpu_flags = av_get_cpu_flags();
|
||||
|
||||
if (EXTERNAL_SSE2(cpu_flags)) {
|
||||
s->synth_filter_float = synth_filter_sse2;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user