[FFmpeg-cvslog] x86/pixelutils: add missing preprocessor wrapper to the AVX2 functions

James Almer git at videolan.org
Wed Aug 1 04:17:15 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Jul 31 22:03:22 2018 -0300| [d5b3077ecffb94887c97cd2f1d34a2de4c991ec4] | committer: James Almer

x86/pixelutils: add missing preprocessor wrapper to the AVX2 functions

Should fix compilation with old yasm/nasm

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

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

 libavutil/x86/pixelutils.asm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/x86/pixelutils.asm b/libavutil/x86/pixelutils.asm
index bbecf0e68e..36c57c5f7f 100644
--- a/libavutil/x86/pixelutils.asm
+++ b/libavutil/x86/pixelutils.asm
@@ -292,6 +292,7 @@ cglobal pixelutils_sad_%1_32x32, 4,5,3, src1, stride1, src2, stride2
 SAD_XMM_32x32 a
 SAD_XMM_32x32 u
 
+%if HAVE_AVX2_EXTERNAL
 ;-------------------------------------------------------------------------------
 ; int ff_pixelutils_sad_32x32_avx2(const uint8_t *src1, ptrdiff_t stride1,
 ;                                  const uint8_t *src2, ptrdiff_t stride2);
@@ -382,3 +383,4 @@ cglobal pixelutils_sad_%1_32x32, 4,7,3, src1, stride1, src2, stride2
 
 SAD_AVX2_32x32 a
 SAD_AVX2_32x32 u
+%endif



More information about the ffmpeg-cvslog mailing list