x86: hpeldsp: Fix a typo, use the right register

Message ID 1359324183-76927-1-git-send-email-martin@martin.st
State Committed
Commit 834e9fb0563956630e4d9bf61c9242ad134334da
Headers show

Commit Message

Martin Storsjö Jan. 27, 2013, 10:03 p.m.
From: Michael Niedermayer <michaelni@gmx.at>

This makes the code actually work.

---
Allegedly.
---
 libavcodec/x86/hpeldsp.asm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ronald Bultje Jan. 27, 2013, 10:03 p.m. | #1
Hi,

On Sun, Jan 27, 2013 at 2:03 PM, Martin Storsjö <martin@martin.st> wrote:
> From: Michael Niedermayer <michaelni@gmx.at>
>
> This makes the code actually work.
>
> ---
> Allegedly.
> ---
>  libavcodec/x86/hpeldsp.asm |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/x86/hpeldsp.asm b/libavcodec/x86/hpeldsp.asm
> index 8afd955..12d42c7 100644
> --- a/libavcodec/x86/hpeldsp.asm
> +++ b/libavcodec/x86/hpeldsp.asm
> @@ -452,7 +452,7 @@ cglobal avg_pixels8_xy2, 4,5
>      pavgb        m2, [r0]
>      pavgb        m1, [r0+r2]
>      mova       [r0], m2
> -    mova    [r0+r2], m2
> +    mova    [r0+r2], m1
>      add          r0, r4
>      sub         r3d, 4
>      jne .loop

OK.

Ronald

Patch

diff --git a/libavcodec/x86/hpeldsp.asm b/libavcodec/x86/hpeldsp.asm
index 8afd955..12d42c7 100644
--- a/libavcodec/x86/hpeldsp.asm
+++ b/libavcodec/x86/hpeldsp.asm
@@ -452,7 +452,7 @@  cglobal avg_pixels8_xy2, 4,5
     pavgb        m2, [r0]
     pavgb        m1, [r0+r2]
     mova       [r0], m2
-    mova    [r0+r2], m2
+    mova    [r0+r2], m1
     add          r0, r4
     sub         r3d, 4
     jne .loop