[PR] avfilter/x86/vf_pullup: Avoid addition (PR #24006)

mkver via ffmpeg-devel <[email protected]> Tue, 04 Aug 2026 14:35:54 -0000
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <178585415496.59.1473244446131057455@29965ddac10e>
PR #24006 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24006
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24006.patch


>From 91a9369621c08c6b37b2fd6567989019fc882630 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Tue, 4 Aug 2026 15:33:16 +0200
Subject: [PATCH] avfilter/x86/vf_pullup: Avoid addition

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/x86/vf_pullup.asm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavfilter/x86/vf_pullup.asm b/libavfilter/x86/vf_pullup.asm
index 6875a846a2..3c321436b7 100644
--- a/libavfilter/x86/vf_pullup.asm
+++ b/libavfilter/x86/vf_pullup.asm
@@ -93,12 +93,10 @@ cglobal pullup_filter_comb, 3, 5, 7, first, second, size
 
 INIT_XMM sse2
 cglobal pullup_filter_var, 3, 3, 3, first, second, size
-    movq       m0, [firstq]
+    movq       m2, [firstq]
     add        firstq, sizeq
     movq       m1, [firstq]
-    pxor       m2, m2
-    psadbw     m0, m1
-    paddw      m2, m0
+    psadbw     m2, m1
     movq       m0, [firstq+sizeq]
     psadbw     m1, m0
     paddw      m2, m1
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]