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

libavcodec/motion_est_template.c:717:17: 
715.             y= best[1];
716.             for(i=0; i<8; i++){
717.                 CHECK_CLIPPED_MV(x+hex[i][0]*dia_size, y+hex[i][1]*dia_size);
                     ^
718.             }
719.         }while(best[0] != x || best[1] != y);
