h264: fix ssse3 biweight code with weights of 128

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 971701d4fc
commit fb2288834b
  1. 7
      libavcodec/x86/h264_weight.asm

@ -257,6 +257,13 @@ BIWEIGHT_FUNC_HALF_MM 8, 8, sse2
add off_regd, 1 add off_regd, 1
or off_regd, 1 or off_regd, 1
add r4, 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 m4, r5d
movd m0, r6d movd m0, r6d
movd m5, off_regd movd m5, off_regd

Loading…
Cancel
Save