From 14f44783549b9688633d550bf44ac8056c93bc17 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 21 Jul 2025 16:52:34 -0300 Subject: [PATCH] avfilter/x86/vf_colordetect: fix use of AVX512 instruction in AVX2 function on non Unix64 targets Signed-off-by: James Almer --- libavfilter/x86/vf_colordetect.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/x86/vf_colordetect.asm b/libavfilter/x86/vf_colordetect.asm index 6482df95cc..3ba9137450 100644 --- a/libavfilter/x86/vf_colordetect.asm +++ b/libavfilter/x86/vf_colordetect.asm @@ -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