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

libavcodec/motion_est_template.c:888:9: 
886.         int d;
887.         //ensure that the refernece samples for hpel refinement are in the map
888.         CHECK_MV(best[0]-1, best[1])
             ^
889.         CHECK_MV(best[0]+1, best[1])
890.         CHECK_MV(best[0], best[1]-1)
