[FFmpeg-cvslog] avfilter/x86/vf_blackdetect: don't use rax to return a 32bit integer
James Almer
git at videolan.org
Fri Jul 18 19:07:45 EEST 2025
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jul 18 13:00:22 2025 -0300| [f263192f0e9739c5c4bb901a23009e64bcbcdac6] | committer: James Almer
avfilter/x86/vf_blackdetect: don't use rax to return a 32bit integer
Fixes compilation on x86_32.
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f263192f0e9739c5c4bb901a23009e64bcbcdac6
---
libavfilter/x86/vf_blackdetect.asm | 10 +++++-----
1 file 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
More information about the ffmpeg-cvslog
mailing list