diff mbox series

[FFmpeg-devel,2/3] avcodec/x86/vvc/vvc_alf: use xq to match ptrdiff_t

Message ID OSZP286MB2173742FA951B04D68BDFFC8CAF22@OSZP286MB2173.JPNP286.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel,1/3] avcodec/x86/vvc/vvc_alf: fix integer overflow | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Wu Jianhua May 29, 2024, 3:38 p.m. UTC
From: Wu Jianhua <toqsxw@outlook.com>

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
---
 libavcodec/x86/vvc/vvc_alf.asm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/x86/vvc/vvc_alf.asm b/libavcodec/x86/vvc/vvc_alf.asm
index 91f158bac9..8bb698955c 100644
--- a/libavcodec/x86/vvc/vvc_alf.asm
+++ b/libavcodec/x86/vvc/vvc_alf.asm
@@ -421,7 +421,7 @@  cglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_s
 .loop:
     push            srcq
     push            dstq
-    xor               xd, xd
+    xor               xq, xq
 
     .loop_w:
         LOAD_PARAMS
@@ -429,8 +429,8 @@  cglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_s
 
         add         srcq, 16 * ps
         add         dstq, 16 * ps
-        add           xd, 16
-        cmp           xd, widthd
+        add           xq, 16
+        cmp           xq, widthq
         jl       .loop_w
 
     pop             dstq
@@ -439,7 +439,7 @@  cglobal vvc_alf_filter_%2_%1bpc, 11, 15, 16, 0-0x28, dst, dst_stride, src, src_s
     lea             dstq, [dstq + 4 * dst_strideq]
 
     lea          filterq, [filterq + 2 * strideq]
-    lea            clipq, [clipq + 2 * strideq]
+    lea            clipq, [clipq   + 2 * strideq]
 
     sub          vb_posq, 4
     sub          heightq, 4