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

libavcodec/motion_est_template.c:588:22: 
586. 
587. //printf("%d", dir);
588.         if(dir!=2 && x>xmin) CHECK_MV_DIR(x-1, y  , 0)
                          ^
589.         if(dir!=3 && y>ymin) CHECK_MV_DIR(x  , y-1, 1)
590.         if(dir!=0 && x<xmax) CHECK_MV_DIR(x+1, y  , 2)
