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

libavcodec/motion_est_template.c:763:9: 
761.         int d;
762.         // ensure that the reference samples for hpel refinement are in the map
763.         CHECK_MV(best[0]-1, best[1])
             ^
764.         CHECK_MV(best[0]+1, best[1])
765.         CHECK_MV(best[0], best[1]-1)
