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

libavcodec/motion_est_template.c:311:22: 
309.     }
310. 
311.     if (mx > xmin && mx < xmax &&
                          ^
312.         my > ymin && my < ymax) {
313.         int bx=4*mx, by=4*my;
