pred_bx, pred_by);
pred_bx, pred_by, 0, 16);
static inline int bidir_refine(MpegEncContext * s,                                  int mb_x, int mb_y){    const int mot_stride = s->mb_stride;    const int xy = mb_y *mot_stride + mb_x;    int fbmin;    int pred_fx= s->b_bidir_forw_mv_table[xy-1][0];    int pred_fy= s->b_bidir_forw_mv_table[xy-1][1];    int pred_bx= s->b_bidir_back_mv_table[xy-1][0];    int pred_by= s->b_bidir_back_mv_table[xy-1][1];    int motion_fx= s->b_bidir_forw_mv_table[xy][0]= s->b_forw_mv_table[xy][0];    int motion_fy= s->b_bidir_forw_mv_table[xy][1]= s->b_forw_mv_table[xy][1];    int motion_bx= s->b_bidir_back_mv_table[xy][0]= s->b_back_mv_table[xy][0];    int motion_by= s->b_bidir_back_mv_table[xy][1]= s->b_back_mv_table[xy][1];    //FIXME do refinement and add flag        fbmin= check_bidir_mv(s, mb_x, mb_y,                           motion_fx, motion_fy,                          motion_bx, motion_by,                          pred_fx, pred_fy,                          pred_bx, pred_by);   return fbmin;}