diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-05 21:37:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-05 21:37:44 +0100 |
commit | fb2288834ba8a51e8934cfe8b82ac468144a34df (patch) | |
tree | 869ff3c6efc0489dcf4d5eddf35fb79278f04059 /libavcodec | |
parent | 971701d4fc01ff756c41f3fd451fe776e7ec94f4 (diff) | |
download | ffmpeg-fb2288834ba8a51e8934cfe8b82ac468144a34df.tar.gz |
h264: fix ssse3 biweight code with weights of 128
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/x86/h264_weight.asm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm index cc96cb1f3b..9bfa8f0f3b 100644 --- a/libavcodec/x86/h264_weight.asm +++ b/libavcodec/x86/h264_weight.asm @@ -257,6 +257,13 @@ BIWEIGHT_FUNC_HALF_MM 8, 8, sse2 add off_regd, 1 or off_regd, 1 add r4, 1 + cmp r5, 128 + jne .normal + sar r5, 1 + sar r6, 1 + sar off_regd, 1 + sub r4, 1 +.normal movd m4, r5d movd m0, r6d movd m5, off_regd |