shithub: openh264

Download patch

ref: a78f1b265048e9eb30bad8b45412834b3adb74c4
parent: f02d0aa6677216b78d3e1150d82e237b5608a0a1
author: Martin Storsjö <[email protected]>
date: Fri Jan 10 11:56:20 EST 2014

win64: Use rsp instead of esp

Using esp works by coincidence as long as the stack pointer is
within the first 4 GB of the address space - which seems to work
as long as the test binary is built with /dynamicbase:no, but breaks
if this option is removed.

--- a/codec/common/deblock.asm
+++ b/codec/common/deblock.asm
@@ -64,7 +64,7 @@
 
 DeblockLumaLt4V_sse2:
   push        rbp      
-  mov         r11,[esp + 16 + 20h]  ; pTC                                                    
+  mov         r11,[rsp + 16 + 20h]  ; pTC
   sub         rsp,1B0h                                                       
   lea         rbp,[rsp+20h]                                                  
   movd        xmm4,r8d