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

libavcodec/motion_est_template.c:148:22: 
146.     }
147. 
148.     if (mx > xmin && mx < xmax &&
                          ^
149.         my > ymin && my < ymax) {
150.         int d= dmin;
