This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
x86/h264_weight: use appropriate register size for weight parameters
This fixes decoding corruption on 64 bit windows. Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n3.3
Hendrik Leppkes
Martin Storsjö
9 years ago
parent
2caa93b813
commit
8d1267932c
1 changed files
with
6 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-6
libavcodec/x86/h264_weight.asm
+ 6
- 6
libavcodec/x86/h264_weight.asm
View File
@@ -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 r4
d
, 1
cmp r6d, 128
je .nonnormal
cmp
r5, 128
cmp r5
d
, 128
jne .normal
.nonnormal
sar
r5, 1
sar
r6, 1
sar r5
d
, 1
sar r6
d
, 1
sar off_regd, 1
sub
r4, 1
sub r4
d
, 1
.normal
%if cpuflag(ssse3)
movd m4, r5d
Write
Preview
Loading…
Cancel
Save