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

libavcodec/motion_est_template.c:795:42: 
793. 
794.     for(y=FFMAX(-dia_size, ymin); y<=FFMIN(dia_size,ymax); y++){
795.         for(x=FFMAX(-dia_size, xmin); x<=FFMIN(dia_size,xmax); x++){
                                              ^
796.             CHECK_MV(x, y);
797.         }
