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

libavcodec/motion_est_template.c:772:13: 
770.     for(j=1; j<=dia_size/4; j++){
771.         for(i=0; i<16; i++){
772.             CHECK_CLIPPED_MV(x+hex[i][0]*j, y+hex[i][1]*j);
                 ^
773.         }
774.     }
