s->mv[1][0][1] = my ? s->mv[0][0][1] - s->motion_val[xy][1]
s->mv[1][0][1] = s->mv[1][1][1] = s->mv[1][2][1] = s->mv[1][3][1] = my ? s->mv[0][0][1] - s->motion_val[xy][1]
void ff_mpeg4_set_direct_mv(MpegEncContext *s, int mx, int my){    const int mb_index= s->mb_x + s->mb_y*s->mb_width;    int xy= s->block_index[0];    uint16_t time_pp= s->pp_time;    uint16_t time_pb= s->pb_time;    int i;            //FIXME avoid divides    switch(s->co_located_type_table[mb_index]){    case 0:        s->mv_type= MV_TYPE_16X16;        s->mv[0][0][0] = s->motion_val[xy][0]*time_pb/time_pp + mx;        s->mv[0][0][1] = s->motion_val[xy][1]*time_pb/time_pp + my;        s->mv[1][0][0] = mx ? s->mv[0][0][0] - s->motion_val[xy][0]                            : s->motion_val[xy][0]*(time_pb - time_pp)/time_pp;        s->mv[1][0][1] = my ? s->mv[0][0][1] - s->motion_val[xy][1]                             : s->motion_val[xy][1]*(time_pb - time_pp)/time_pp;        break;    case CO_LOCATED_TYPE_4MV:        s->mv_type = MV_TYPE_8X8;        for(i=0; i<4; i++){            xy= s->block_index[i];            s->mv[0][i][0] = s->motion_val[xy][0]*time_pb/time_pp + mx;            s->mv[0][i][1] = s->motion_val[xy][1]*time_pb/time_pp + my;            s->mv[1][i][0] = mx ? s->mv[0][i][0] - s->motion_val[xy][0]                                : s->motion_val[xy][0]*(time_pb - time_pp)/time_pp;            s->mv[1][i][1] = my ? s->mv[0][i][1] - s->motion_val[xy][1]                                 : s->motion_val[xy][1]*(time_pb - time_pp)/time_pp;        }        break;    case CO_LOCATED_TYPE_FIELDMV:        s->mv_type = MV_TYPE_FIELD;        for(i=0; i<2; i++){            if(s->top_field_first){                time_pp= s->pp_field_time - s->field_select_table[mb_index][i] + i;                time_pb= s->pb_field_time - s->field_select_table[mb_index][i] + i;            }else{                time_pp= s->pp_field_time + s->field_select_table[mb_index][i] - i;                time_pb= s->pb_field_time + s->field_select_table[mb_index][i] - i;            }            s->mv[0][i][0] = s->field_mv_table[mb_index][i][0]*time_pb/time_pp + mx;            s->mv[0][i][1] = s->field_mv_table[mb_index][i][1]*time_pb/time_pp + my;            s->mv[1][i][0] = mx ? s->mv[0][i][0] - s->field_mv_table[mb_index][i][0]                                : s->field_mv_table[mb_index][i][0]*(time_pb - time_pp)/time_pp;            s->mv[1][i][1] = my ? s->mv[0][i][1] - s->field_mv_table[mb_index][i][1]                                 : s->field_mv_table[mb_index][i][1]*(time_pb - time_pp)/time_pp;        }        break;    }}