Browse Source

swscale/x86/range_convert: add missing AVX2 preprocessor wrapper

Fixes compilation with old yasm.

Signed-off-by: James Almer <jamrial@gmail.com>
James Almer 9 months ago
parent
commit
fcf72966a5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libswscale/x86/range_convert.asm

+ 2 - 0
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