Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-09 06:11:09 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-06-10 03:13:12 +0300
commit8320aa7dc74309df8eba2e39e50844ab59a47ed4 (patch)
tree1b6d4afa988ec70358db0be3baed44065a6ad221
parent7a9f4f2816be98fee348dec2a63177b431366e9e (diff)
avcodec/x86/h264_weight: handle weight1=128
Fix ticket4596 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit e1009665759d4a3938dd2dd07b7e84d8bc9c5290) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/x86/h264_weight.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/h264_weight.asm b/libavcodec/x86/h264_weight.asm
index 4759a063a6..f6b9d5f6ad 100644
--- a/libavcodec/x86/h264_weight.asm
+++ b/libavcodec/x86/h264_weight.asm
@@ -135,8 +135,11 @@ WEIGHT_FUNC_HALF_MM 8, 8
add off_regd, 1
or off_regd, 1
add r4, 1
+ cmp r6d, 128
+ je .nonnormal
cmp r5, 128
jne .normal
+.nonnormal
sar r5, 1
sar r6, 1
sar off_regd, 1