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

libavcodec/motion_est_template.c:622:15: 
620.         if(   x + dia_size > xmax
621.            || x - dia_size < xmin
622.            || y + dia_size > ymax
                   ^
623.            || y - dia_size < ymin)
624.            continue;
