summaryrefslogtreecommitdiff
path: root/libavcodec/x86/h264_weight_10bit.asm
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-04-15 08:11:55 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2012-04-16 08:07:21 -0700
commit87a246341b0a87122391f9dbf00cae7bc3a62d90 (patch)
tree2634ffc1532af0dee560837586034ede6f9cf4c3 /libavcodec/x86/h264_weight_10bit.asm
parentb553a425fbd20b38a6cac5fd5e22ecca71e1f599 (diff)
h264: use proper PROLOGUE statement for a function using 8 registers.
Fixes crashes when using biweight on win64.
Diffstat (limited to 'libavcodec/x86/h264_weight_10bit.asm')
-rw-r--r--libavcodec/x86/h264_weight_10bit.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/x86/h264_weight_10bit.asm b/libavcodec/x86/h264_weight_10bit.asm
index c4b12984f6..dec9aba461 100644
--- a/libavcodec/x86/h264_weight_10bit.asm
+++ b/libavcodec/x86/h264_weight_10bit.asm
@@ -160,7 +160,7 @@ DECLARE_REG_TMP 7
%macro BIWEIGHT_PROLOGUE 0
.prologue
- PROLOGUE 0,7,8
+ PROLOGUE 0,8,8
movifnidn r0, r0mp
movifnidn r1, r1mp
movifnidn r2d, r2m
@@ -218,7 +218,7 @@ DECLARE_REG_TMP 7
%endmacro
%macro BIWEIGHT_FUNC_DBL 1
-cglobal h264_biweight_16_10_%1, 0, 8, 8
+cglobal h264_biweight_16_10_%1
BIWEIGHT_PROLOGUE
BIWEIGHT_SETUP %1
.nextrow
@@ -238,7 +238,7 @@ BIWEIGHT_FUNC_DBL sse2
BIWEIGHT_FUNC_DBL sse4
%macro BIWEIGHT_FUNC 1
-cglobal h264_biweight_8_10_%1, 0, 8, 8
+cglobal h264_biweight_8_10_%1
BIWEIGHT_PROLOGUE
BIWEIGHT_SETUP %1
.nextrow
@@ -256,7 +256,7 @@ BIWEIGHT_FUNC sse2
BIWEIGHT_FUNC sse4
%macro BIWEIGHT_FUNC_HALF 1
-cglobal h264_biweight_4_10_%1, 0, 8, 8
+cglobal h264_biweight_4_10_%1
BIWEIGHT_PROLOGUE
BIWEIGHT_SETUP %1
sar r3d, 1