diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-03 18:09:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-03 18:09:15 +0200 |
commit | d29f9f4a0e0af4929c13c8457c1cf68dc02a6c58 (patch) | |
tree | 3b83097ac4790293ac1fca20d6c31547af8fc807 | |
parent | 7e30bfcb9176880f06714e8ef83303d56b1eafea (diff) | |
download | ffmpeg-d29f9f4a0e0af4929c13c8457c1cf68dc02a6c58.tar.gz |
vc1dec: fix lutuv use in vc1_mc_4mv_chroma4()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/vc1dec.c | 6 |
1 files 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<<fieldmv))&1; for (i = 0; i < 5; i++) { - src[i] = lutuv1[src[i]]; - src2[i] = lutuv1[src2[i]]; + src[i] = lutuv[f][src[i]]; + src2[i] = lutuv[f][src2[i]]; } src += s->uvlinesize << fieldmv; src2 += s->uvlinesize << fieldmv; |