Commit 2cb7c816 authored by Diego Biurrun's avatar Diego Biurrun

x86: Fix linking of ProRes DSP ASM with YASM disabled.

parent 463ea05a
...@@ -31,7 +31,7 @@ void ff_prores_idct_put_10_avx (uint16_t *dst, int linesize, ...@@ -31,7 +31,7 @@ void ff_prores_idct_put_10_avx (uint16_t *dst, int linesize,
void ff_proresdsp_x86_init(ProresDSPContext *dsp) void ff_proresdsp_x86_init(ProresDSPContext *dsp)
{ {
#if ARCH_X86_64 #if ARCH_X86_64 && HAVE_YASM
int flags = av_get_cpu_flags(); int flags = av_get_cpu_flags();
if (flags & AV_CPU_FLAG_SSE2) { if (flags & AV_CPU_FLAG_SSE2) {
...@@ -49,6 +49,6 @@ void ff_proresdsp_x86_init(ProresDSPContext *dsp) ...@@ -49,6 +49,6 @@ void ff_proresdsp_x86_init(ProresDSPContext *dsp)
dsp->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM; dsp->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
dsp->idct_put = ff_prores_idct_put_10_avx; dsp->idct_put = ff_prores_idct_put_10_avx;
} }
#endif #endif /* HAVE_AVX */
#endif #endif /* ARCH_X86_64 && HAVE_YASM */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment