libavcodec/motion_est_template.c:1078: error: Uninitialized Value
  The value read from ymax was never initialized.

libavcodec/motion_est_template.c:1078:17: 
1076.                             (last_mv[ref_mv_xy+1][1]*ref_mv_scale + (1<<15))>>16)
1077.             if(s->mb_y+1<s->end_mb_y)  //FIXME replace at least with last_slice_line
1078.                 CHECK_CLIPPED_MV((last_mv[ref_mv_xy+ref_mv_stride][0]*ref_mv_scale + (1<<15))>>16,
                      ^
1079.                                 (last_mv[ref_mv_xy+ref_mv_stride][1]*ref_mv_scale + (1<<15))>>16)
1080.         }
