[x264-devel] x86: Fix stack alignment for x264_cabac_encode_ue_bypass call

Anton Mitrofanov git at videolan.org
Mon Dec 25 20:39:30 CET 2017


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Sun Oct 22 20:18:39 2017 +0300| [e9a5903edf8ca59ef20e6f4894c196f135af735e] | committer: Anton Mitrofanov

x86: Fix stack alignment for x264_cabac_encode_ue_bypass call

Fix MSVS fprofiled build for win64

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=e9a5903edf8ca59ef20e6f4894c196f135af735e
---

 common/x86/cabac-a.asm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/x86/cabac-a.asm b/common/x86/cabac-a.asm
index 49bca50d..3644fd57 100644
--- a/common/x86/cabac-a.asm
+++ b/common/x86/cabac-a.asm
@@ -737,14 +737,14 @@ cglobal cabac_block_residual_internal, 4,15,0,-4*64
     push     r7
     push     r8
 %else
-    sub      rsp, 32 ; shadow space
+    sub      rsp, 40 ; shadow space and alignment
 %endif
     call cabac_encode_ue_bypass
 %if UNIX64
     pop      r8
     pop      r7
 %else
-    add      rsp, 32
+    add      rsp, 40
 %endif
     pop      r0
 .level_gt1_end:



More information about the x264-devel mailing list