aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tx.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-01-26 23:40:35 +0100
committerLynne <dev@lynne.ee>2022-01-27 02:17:46 +0100
commit9787005846893c1d1c01cb8ac71abed91980b218 (patch)
treee53802bee14f17996efdbd772d9db98cbbab992f /libavutil/tx.c
parentb2421c4f26aca9b31055aff51ee442b220ebf2a7 (diff)
downloadffmpeg-9787005846893c1d1c01cb8ac71abed91980b218.tar.gz
x86/tx_float: do not build tx_float_init.c if x86 assembly is disabled
This broke builds with --disable-mmx, which also disabled assembly entirely, but ARCH_X86 was still true, so the init file tried to find assembly that didn't exist. Instead of checking for architecture, check if external x86 assembly is enabled.
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r--libavutil/tx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index cac7815231..5c1ac20c92 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -439,7 +439,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
ff_tx_codelet_list_double_c,
ff_tx_codelet_list_int32_c,
ff_tx_null_list,
-#if ARCH_X86
+#if HAVE_X86ASM
ff_tx_codelet_list_float_x86,
#endif
};