From fdca209f1f10a6368a38f8ce750b41600fad5024 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 21 Jul 2025 16:55:47 -0300 Subject: [PATCH] avfilter/x86/vf_colordetect: don't use rax to return a 32bit integer Fixes compilation on x86_32 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 3ba9137450..9a5c5ad21b 100644 --- a/libavfilter/x86/vf_colordetect.asm +++ b/libavfilter/x86/vf_colordetect.asm @@ -65,7 +65,7 @@ cglobal detect_range%1, 4, 7, 5, data, stride, width, height, mpeg_min, mpeg_max jg .lineloop .end: setnz al - movzx rax, al + movzx eax, al RET %endmacro @@ -125,11 +125,11 @@ cglobal detect_alpha%1_%3, 6, 7, 6, color, color_stride, alpha, alpha_stride, wi add alphaq, alpha_strideq dec heightq jg .lineloop - xor rax, rax + xor eax, eax RET .found: - mov rax, 1 + mov eax, 1 RET %endmacro