From d29f9f4a0e0af4929c13c8457c1cf68dc02a6c58 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 May 2013 18:09:15 +0200 Subject: [PATCH] vc1dec: fix lutuv use in vc1_mc_4mv_chroma4() Signed-off-by: Michael Niedermayer --- libavcodec/vc1dec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 8edf731773..613241c62f 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -1041,14 +1041,14 @@ static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg) if (use_ic) { int i, j; uint8_t *src, *src2; - const uint8_t *lutuv1 = lutuv[v->ref_field_type[i<2 ? dir : dir2]]; src = srcU; src2 = srcV; for (j = 0; j < 5; j++) { + int f = (uvsrc_y + (j<uvlinesize << fieldmv; src2 += s->uvlinesize << fieldmv;