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

libavcodec/motion_est_template.c:1065:9: 
1063.         CHECK_MV(P_LEFT[0]    >>shift, P_LEFT[1]    >>shift)
1064.         CHECK_MV(P_TOP[0]     >>shift, P_TOP[1]     >>shift)
1065.         CHECK_MV(P_TOPRIGHT[0]>>shift, P_TOPRIGHT[1]>>shift)
              ^
1066.     }
1067.     if(dmin>h*h*4){
