summaryrefslogtreecommitdiff
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-09-23 09:52:48 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2016-09-23 16:40:57 +0200
commit5ae0ad001a653e71b14c92a0d7861de87901752c (patch)
treec7b20e2fd9772a6b803f26dc0e0089536ad042f7 /libavcodec/x86
parenta5fafabc8411f2394652b99aed15de57225f4682 (diff)
x86/h264_weight: use appropriate register size for weight parameters
Fixes trac 5579 Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Acked-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/h264_weight.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm
index 6c57d57bc0..0975d74fcf 100644
--- a/libavcodec/x86/h264_weight.asm
+++ b/libavcodec/x86/h264_weight.asm
@@ -134,16 +134,16 @@ WEIGHT_FUNC_HALF_MM 8, 8
mov off_regd, r7m
add off_regd, 1
or off_regd, 1
- add r4, 1
- cmp r6d, 128
+ add r4d, 1
+ cmp r6d, 128
je .nonnormal
- cmp r5, 128
+ cmp r5d, 128
jne .normal
.nonnormal:
- sar r5, 1
- sar r6, 1
+ sar r5d, 1
+ sar r6d, 1
sar off_regd, 1
- sub r4, 1
+ sub r4d, 1
.normal:
%if cpuflag(ssse3)
movd m4, r5d