aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-18 18:57:22 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-02-19 15:31:03 -0800
commit8fb26950ed3c4cd1e175c4439726884926cba022 (patch)
tree70ea709ac97e8b371525b26afeceeb52d1eb1a94 /libavcodec/x86
parentb18f8cbf3dd27ba881770ef588fcb4d1de4a41f5 (diff)
downloadffmpeg-8fb26950ed3c4cd1e175c4439726884926cba022.tar.gz
h264: don't use redzone in loopfilter on win64.
Red zone usage is not allowed in the Win64 ABI.
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/h264_deblock.asm9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavcodec/x86/h264_deblock.asm b/libavcodec/x86/h264_deblock.asm
index f264edb65f..0f61922276 100644
--- a/libavcodec/x86/h264_deblock.asm
+++ b/libavcodec/x86/h264_deblock.asm
@@ -824,9 +824,13 @@ cglobal deblock_v_chroma_8_mmxext, 5,6
; void ff_deblock_h_chroma( uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0 )
;-----------------------------------------------------------------------------
cglobal deblock_h_chroma_8_mmxext, 5,7
-%if ARCH_X86_64
+%if UNIX64
%define buf0 [rsp-24]
%define buf1 [rsp-16]
+%elif WIN64
+ sub rsp, 16
+ %define buf0 [rsp]
+ %define buf1 [rsp+8]
%else
%define buf0 r0m
%define buf1 r2m
@@ -839,6 +843,9 @@ cglobal deblock_h_chroma_8_mmxext, 5,7
movq m0, buf0
movq m3, buf1
TRANSPOSE8x4B_STORE PASS8ROWS(t5, r0, r1, t6)
+%if WIN64
+ add rsp, 16
+%endif
RET
ALIGN 16