[x265] [PATCH] asm: fix crash as NR buffer is not aligned to 16-byte boundry

dnyaneshwar at multicorewareinc.com dnyaneshwar at multicorewareinc.com
Thu Sep 10 08:22:37 CEST 2015


# HG changeset patch
# User Dnyaneshwar G <dnyaneshwar at multicorewareinc.com>
# Date 1441865435 -19800
#      Thu Sep 10 11:40:35 2015 +0530
# Node ID abab4304e992b7addb65ad8fbdfe309ba57732a6
# Parent  89c234e68523b05550b8c5197b83849544dc97d1
asm: fix crash as NR buffer is not aligned to 16-byte boundry

diff -r 89c234e68523 -r abab4304e992 source/common/x86/dct8.asm
--- a/source/common/x86/dct8.asm	Tue Sep 08 17:54:11 2015 +0530
+++ b/source/common/x86/dct8.asm	Thu Sep 10 11:40:35 2015 +0530
@@ -2115,15 +2115,15 @@
     mova     m0, [r0]
     pabsw    m1, m0
 
-    mova     m2, [r1]
+    movu     m2, [r1]
     pmovsxwd m3, m1
     paddd    m2, m3
-    mova     [r1], m2
-    mova     m2, [r1 + 16]
+    movu     [r1], m2
+    movu     m2, [r1 + 16]
     psrldq   m3, m1, 8
     pmovsxwd m4, m3
     paddd    m2, m4
-    mova     [r1 + 16], m2
+    movu     [r1 + 16], m2
 
     movu     m3, [r2]
     psubusw  m1, m3


More information about the x265-devel mailing list