1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avfilter/x86/vf_colordetect: fix use of AVX512 instruction in AVX2 function on non Unix64 targets

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-07-21 16:52:34 -03:00
parent f944a70fcc
commit 14f4478354

View File

@ -25,15 +25,15 @@
SECTION .text
%macro detect_range_fn 1 ; suffix
cglobal detect_range%1, 6, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x
cglobal detect_range%1, 4, 7, 5, data, stride, width, height, mpeg_min, mpeg_max, x
%if UNIX64 && notcpuflag(avx512)
movd xm0, mpeg_mind
movd xm1, mpeg_maxd
vpbroadcast%1 m0, xm0
vpbroadcast%1 m1, xm1
%else
vpbroadcast%1 m0, mpeg_mind
vpbroadcast%1 m1, mpeg_maxd
vpbroadcast%1 m0, mpeg_minm
vpbroadcast%1 m1, mpeg_maxm
%endif
add dataq, widthq
neg widthq