[FFmpeg-cvslog] x86/vf_lut3d: use three operand form for some instructions

James Almer git at videolan.org
Fri Oct 15 00:09:49 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Oct 14 18:09:08 2021 -0300| [39f3c98bb1f405161b1d484438f73573b3f326b4] | committer: James Almer

x86/vf_lut3d: use three operand form for some instructions

Fixes compilation with old yasm.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavfilter/x86/vf_lut3d.asm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/x86/vf_lut3d.asm b/libavfilter/x86/vf_lut3d.asm
index 31a46e327d..a39fa65040 100644
--- a/libavfilter/x86/vf_lut3d.asm
+++ b/libavfilter/x86/vf_lut3d.asm
@@ -338,22 +338,22 @@ endstruc
     ; g> !r>g && g>b
     andnps m9, m13, m14
     BLEND m12, prev_g, next_g, m9
-    addps m10, m12
+    addps m10, m10, m12
 
     ; g< !g>b && r>g
     andnps m9, m14, m13
     BLEND m12, next_g, prev_g, m9
-    addps m11, m12
+    addps m11, m11, m12
 
     ; b> !g>b && b>r
     andnps m9, m14, m15
     BLEND m12, prev_b, next_b, m9
-    addps m10, m12
+    addps m10, m10, m12
 
     ; b< !b>r && g>b
     andnps m9, m15, m14
     BLEND m12, next_b, prev_b, m9
-    addps m11, m12
+    addps m11, m11, m12
 
     ; c000 m12;
     ADD3 m12, prev_r, prev_g, prev_b



More information about the ffmpeg-cvslog mailing list