--- branches/dev-api-3/xvidcore/src/motion/motion_comp.c 2002/10/30 18:06:41 616 +++ branches/dev-api-3/xvidcore/src/motion/motion_comp.c 2002/10/30 23:12:13 617 @@ -158,14 +158,13 @@ if (quarterpel) { - dx = (dx >> 2) + roundtab_78[dx & 0x7]; - dy = (dy >> 2) + roundtab_78[dy & 0x7]; - } - else { - dx = (dx >> 1) + roundtab_79[dx & 0x3]; - dy = (dy >> 1) + roundtab_79[dy & 0x3]; + dx /= 2; + dy /= 2; } + dx = (dx >> 1) + roundtab_79[dx & 0x3]; + dy = (dy >> 1) + roundtab_79[dy & 0x3]; + /* uv-block-based compensation */ transfer_8to16sub(&dct_codes[4 * 64], cur->u + 8 * j * edged_width / 2 + 8 * i,