avcodec/vc1_mc: use the same reference as luma does in ff_vc1_mc_4mv_chroma()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Dec 2014 21:47:38 +0000 (22:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Dec 2014 00:25:29 +0000 (01:25 +0100)
Fixes Ticket3230

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vc1_mc.c

index 09e8fac..17800cb 100644 (file)
@@ -529,7 +529,7 @@ void ff_vc1_mc_4mv_chroma(VC1Context *v, int dir)
     /* calculate chroma MV vector from four luma MVs */
     if (!v->field_mode || (v->field_mode && !v->numref)) {
         valid_count = get_chroma_mv(mvx, mvy, intra, 0, &tx, &ty);
-        chroma_ref_type = v->reffield;
+        chroma_ref_type = v->ref_field_type[dir];
         if (!valid_count) {
             s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0;
             s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0;