aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2025-07-18 13:00:22 -0300
committerJames Almer <jamrial@gmail.com>2025-07-18 13:05:44 -0300
commitf263192f0e9739c5c4bb901a23009e64bcbcdac6 (patch)
treee71a0076d1fa7021ec8b19662d2843a1090f81fd
parenta218cafe4d3be005ab0c61130f90db4d21afb5db (diff)
downloadffmpeg-f263192f0e9739c5c4bb901a23009e64bcbcdac6.tar.gz
avfilter/x86/vf_blackdetect: don't use rax to return a 32bit integer
Fixes compilation on x86_32. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavfilter/x86/vf_blackdetect.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/x86/vf_blackdetect.asm b/libavfilter/x86/vf_blackdetect.asm
index 78c24c5adc..86251ceca5 100644
--- a/libavfilter/x86/vf_blackdetect.asm
+++ b/libavfilter/x86/vf_blackdetect.asm
@@ -35,12 +35,12 @@ cglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold
%endif
add srcq, widthq
neg widthq
- xor r4, r4
+ xor r4d, r4d
mov r5, widthq
jmp .start
.loop:
popcnt r6d, r6d
- add r4, r6
+ add r4d, r6d
.start:
movu m0, [srcq + r5]
%if %1 == 8
@@ -56,15 +56,15 @@ cglobal blackdetect_%1, 5, 7, 2, src, stride, width, height, threshold
; handle tail by shifting away unused high elements
shlx r6d, r6d, r5d
popcnt r6d, r6d
- add r4, r6
+ add r4d, r6d
add srcq, strideq
mov r5, widthq
dec heightq
jg .start
%if %1 > 8
- shr r4, 1
+ shr r4d, 1
%endif
- mov rax, r4
+ mov eax, r4d
RET
%endmacro