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

libavcodec/motion_est_template.c:885:11: 
883. 
884.     if(   best[0] < xmax && best[0] > xmin
885.        && best[1] < ymax && best[1] > ymin){
               ^
886.         int d;
887.         //ensure that the refernece samples for hpel refinement are in the map
