[10/15] vc1dec: Match addressing between compensation and MC in vc1_mc_4mv_chroma4

Message ID 1369729571-75967-10-git-send-email-martin@martin.st
State Committed
Headers show

Commit Message

Martin Storsjö May 28, 2013, 8:26 a.m.
From: Michael Niedermayer <michaelni@gmx.at>

---
 libavcodec/vc1dec.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kostya Shishkov May 28, 2013, 9:41 a.m. | #1
On Tue, May 28, 2013 at 11:26:06AM +0300, Martin Storsjö wrote:
> From: Michael Niedermayer <michaelni@gmx.at>
> 
> ---
>  libavcodec/vc1dec.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
> index 426bc7a..0f758ce 100644
> --- a/libavcodec/vc1dec.c
> +++ b/libavcodec/vc1dec.c
> @@ -1028,8 +1028,8 @@ static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg)
>                          src[i]  = lutuv1[src[i]];
>                          src2[i] = lutuv1[src2[i]];
>                      }
> -                    src  += s->uvlinesize << 1;
> -                    src2 += s->uvlinesize << 1;
> +                    src  += s->uvlinesize << fieldmv;
> +                    src2 += s->uvlinesize << fieldmv;
>                  }
>              }
>          }
> -- 

might be OK

Patch

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 426bc7a..0f758ce 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -1028,8 +1028,8 @@  static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg)
                         src[i]  = lutuv1[src[i]];
                         src2[i] = lutuv1[src2[i]];
                     }
-                    src  += s->uvlinesize << 1;
-                    src2 += s->uvlinesize << 1;
+                    src  += s->uvlinesize << fieldmv;
+                    src2 += s->uvlinesize << fieldmv;
                 }
             }
         }