[x265] [PATCH] copy_cnt replaced align load with unaligned load to avoid code crash, we are not sure about alignment of dst buffer

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Sep 9 07:19:33 CEST 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1410239785 -19800
# Node ID 91e5893dc024ccfcdec04cef5e8832c80632ee0a
# Parent  c4fb044c901b8a996f79797be29c894aaf3dcf83
copy_cnt replaced align load with unaligned load to avoid code crash, we are not sure about alignment of dst buffer

diff -r c4fb044c901b -r 91e5893dc024 source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm	Mon Sep 08 19:39:34 2014 -0700
+++ b/source/common/x86/blockcopy8.asm	Tue Sep 09 10:46:25 2014 +0530
@@ -3960,13 +3960,13 @@
     ; row 0 & 1
     movh        m0, [r1]
     movhps      m0, [r1 + r2]
-    mova        [r0], m0
+    movu        [r0], m0
 
     ; row 2 & 3
     movh        m1, [r1 + r2 * 2]
     lea         r2, [r2 * 3]
     movhps      m1, [r1 + r2]
-    mova        [r0 + 16], m1
+    movu        [r0 + 16], m1
 
     packsswb    m0, m1
     pcmpeqb     m0, m2


More information about the x265-devel mailing list