diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-12 22:18:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-12 22:18:35 +0200 |
commit | dc66951bb2a10c1c6e1352fd6f0a601dc77785e5 (patch) | |
tree | 322acbf323c69ba3a18f6d8fd42c0955df9d3776 /libavcodec/x86 | |
parent | 67dad8e7b1d2d1792439672499b2fb4d3b633312 (diff) | |
download | ffmpeg-dc66951bb2a10c1c6e1352fd6f0a601dc77785e5.tar.gz |
proresdsp: fix rounding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/proresdsp.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/x86/proresdsp.asm b/libavcodec/x86/proresdsp.asm index ad6520bbf3..d674308c05 100644 --- a/libavcodec/x86/proresdsp.asm +++ b/libavcodec/x86/proresdsp.asm @@ -49,9 +49,9 @@ w1_plus_w5: times 4 dw W1sh2, +W5sh2 w5_min_w1: times 4 dw W5sh2, -W1sh2 w5_plus_w7: times 4 dw W5sh2, +W7sh2 w7_min_w5: times 4 dw W7sh2, -W5sh2 -row_round: times 8 dw (1<<14) pw_88: times 8 dw 0x2008 +cextern pw_1 cextern pw_4 cextern pw_512 cextern pw_1019 @@ -96,10 +96,10 @@ section .text align=16 %ifidn %1, col paddw m10,[pw_88] %endif - SBUTTERFLY3 wd, 0, 1, 10, 8 ; { row[0], row[2] }[0-3]/[4-7] %ifidn %1, row - psubw m10,[row_round] + paddw m10,[pw_1] %endif + SBUTTERFLY3 wd, 0, 1, 10, 8 ; { row[0], row[2] }[0-3]/[4-7] pmaddwd m2, m0, [w4_plus_w6] pmaddwd m3, m1, [w4_plus_w6] pmaddwd m4, m0, [w4_min_w6] |