[FFmpeg-devel] [PATCH 6/6] scalprod fix.

Christophe Gisquet christophe.gisquet at gmail.com
Wed May 8 16:51:52 CEST 2013


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

diff --git a/libavcodec/x86/dsputil.asm b/libavcodec/x86/dsputil.asm
index 8ad67e5..7cee968 100644
--- a/libavcodec/x86/dsputil.asm
+++ b/libavcodec/x86/dsputil.asm
@@ -59,10 +59,10 @@ cglobal scalarproduct_int16, 3,3+mmsize/16,3, v1, v2, order
     add     orderq, mmsize*2
     jl .loop
 %if mmsize == 16
-    test    r3, 0
-    jz .end
-    movu    m0, [v1q + orderq]
-    pmaddwd m0, [v2q + orderq]
+    cmp     r3, 0
+    jz    .end
+    movu    m0, [v1q]
+    pmaddwd m0, [v2q]
     paddd   m2, m0
 .end:
     movhlps m0, m2
-- 
1.8.0.msysgit.0



More information about the ffmpeg-devel mailing list