aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-12-16 09:41:56 -0300
committerJames Almer <jamrial@gmail.com>2021-12-16 09:41:56 -0300
commit76a3f961f8e004da3ebc32640baf5c5ea4406a3b (patch)
tree5433c161a5b88a3945355854d048fb630c6e58d5
parent0ab5d7e92b7970616066b634354d2233927ee36b (diff)
downloadffmpeg-76a3f961f8e004da3ebc32640baf5c5ea4406a3b.tar.gz
x86/scale_avx2: add missing check for AVX2 assembler support
Should fix compilation with old yasm. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libswscale/x86/scale_avx2.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/x86/scale_avx2.asm b/libswscale/x86/scale_avx2.asm
index 4e4fe5d794..2cd7e968d3 100644
--- a/libswscale/x86/scale_avx2.asm
+++ b/libswscale/x86/scale_avx2.asm
@@ -106,7 +106,9 @@ REP_RET
%endmacro
%if ARCH_X86_64
+%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
SCALE_FUNC 4
SCALE_FUNC X4
%endif
+%endif