changeset 3523:7407a264d243 libavcodec

Set MpegEncContext->mspel flag (here it indicates that bicubic MC will be use)
author kostya
date Sat, 29 Jul 2006 03:11:14 +0000
parents 5de1edac254e
children 419409926166
files vc1.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sat Jul 29 03:07:30 2006 +0000
+++ b/vc1.c	Sat Jul 29 03:11:14 2006 +0000
@@ -1474,6 +1474,7 @@
                 v->s.quarter_sample = 1;
         } else
             v->s.quarter_sample = 1;
+        v->s.mspel = !(v->mv_mode == MV_PMODE_1MV_HPEL_BILIN || (v->mv_mode == MV_PMODE_INTENSITY_COMP && v->mv_mode2 == MV_PMODE_1MV_HPEL_BILIN));
 
         if ((v->mv_mode == MV_PMODE_INTENSITY_COMP &&
                  v->mv_mode2 == MV_PMODE_MIXED_MV)
@@ -1523,6 +1524,7 @@
         lowquant = (v->pq > 12) ? 0 : 1;
         v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN;
         v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV);
+        v->s.mspel = v->s.quarter_sample;
 
         status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v);
         if (status < 0) return -1;