[FFmpeg-cvslog] x86/scale_avx2: add missing check for AVX2 assembler support

James Almer git at videolan.org
Thu Dec 16 14:43:45 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Dec 16 09:41:56 2021 -0300| [76a3f961f8e004da3ebc32640baf5c5ea4406a3b] | committer: James Almer

x86/scale_avx2: add missing check for AVX2 assembler support

Should fix compilation with old yasm.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=76a3f961f8e004da3ebc32640baf5c5ea4406a3b
---

 libswscale/x86/scale_avx2.asm | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the ffmpeg-cvslog mailing list