ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Mon Jul 21 16:55:47 
2025 -0300| [fdca209f1f10a6368a38f8ce750b41600fad5024] | committer: James Almer

avfilter/x86/vf_colordetect: don't use rax to return a 32bit integer

Fixes compilation on x86_32 targets

Signed-off-by: James Almer <jamr...@gmail.com>

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

 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
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to