--- trunk/xvidcore/src/bitstream/mbcoding.c 2002/06/30 10:46:29 252 +++ trunk/xvidcore/src/bitstream/mbcoding.c 2002/07/18 23:52:40 313 @@ -518,11 +518,11 @@ int i; /* ------------------------------------------------------------------ - when a block is skipped it is decoded DIRECT(0,) - hence are interpolated from forward & backward frames + when a block is skipped it is decoded DIRECT(0,0) + hence is interpolated from forward & backward frames ------------------------------------------------------------------ */ - if (mb->mode == 5) { + if (mb->mode == MODE_DIRECT_NONE_MV) { BitstreamPutBit(bs, 1); // skipped return; } @@ -556,7 +556,8 @@ } if (mb->mode == MODE_DIRECT) { - // TODO: direct + CodeVector(bs, mb->mvs[0].x, 1, pStat); /* fcode is always 1 for delta vector */ + CodeVector(bs, mb->mvs[0].y, 1, pStat); /* prediction is always (0,0) */ } for (i = 0; i < 6; i++) {