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

libavcodec/motion_est_template.c:681:13: 
679. 
680.             CHECK_CLIPPED_MV(x  -dia_size    , y);
681.             CHECK_CLIPPED_MV(x+  dia_size    , y);
                 ^
682.             CHECK_CLIPPED_MV(x+( dia_size>>1), y+dia_size);
683.             CHECK_CLIPPED_MV(x+( dia_size>>1), y-dia_size);
