Diego Biurrun <[email protected]> writes: > diff --git a/libavcodec/x86/dnxhdenc.c b/libavcodec/x86/dnxhdenc.c > index c344afe..ab60d8b 100644 > --- a/libavcodec/x86/dnxhdenc.c > +++ b/libavcodec/x86/dnxhdenc.c > @@ -22,6 +22,7 @@ > */ > > #include "libavutil/x86/asm.h" > +#include "libavutil/x86/cpu.h" > #include "libavcodec/dnxhdenc.h" > > #if HAVE_INLINE_ASM > @@ -56,10 +57,7 @@ static void get_pixels_8x4_sym_sse2(DCTELEM *block, const > uint8_t *pixels, int l > > void ff_dnxhdenc_init_x86(DNXHDEncContext *ctx) > { > -#if HAVE_INLINE_ASM > - if (av_get_cpu_flags() & AV_CPU_FLAG_SSE2) { > + if (INLINE_SSE2(av_get_cpu_flags())) > if (ctx->cid_table->bit_depth == 8) > ctx->get_pixels_8x4_sym = get_pixels_8x4_sym_sse2; > - } > -#endif /* HAVE_INLINE_ASM */ > }
This will fail if HAVE_INLINE_ASM is not set. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
