[FFmpeg-cvslog] swscale/x86/range_convert: add missing AVX2 preprocessor wrapper

James Almer git at videolan.org
Sun Jun 16 16:10:43 EEST 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Jun 16 10:09:38 2024 -0300| [fcf72966a5f20b9d5df6889e748abd04019b56aa] | committer: James Almer

swscale/x86/range_convert: add missing AVX2 preprocessor wrapper

Fixes compilation with old yasm.

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

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

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

diff --git a/libswscale/x86/range_convert.asm b/libswscale/x86/range_convert.asm
index 572364df50..97c7525448 100644
--- a/libswscale/x86/range_convert.asm
+++ b/libswscale/x86/range_convert.asm
@@ -127,8 +127,10 @@ CHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift
 LUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift
 CHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift
 
+%if HAVE_AVX2_EXTERNAL
 INIT_YMM avx2
 LUMCONVERTRANGE lumRangeToJpeg,   lum_to_mult,   lum_to_offset,   lum_to_shift
 CHRCONVERTRANGE chrRangeToJpeg,   chr_to_mult,   chr_to_offset,   chr_to_shift
 LUMCONVERTRANGE lumRangeFromJpeg, lum_from_mult, lum_from_offset, lum_from_shift
 CHRCONVERTRANGE chrRangeFromJpeg, chr_from_mult, chr_from_offset, chr_from_shift
+%endif



More information about the ffmpeg-cvslog mailing list