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

libavcodec/motion_est_template.c:762:34: 
760.     x= best[0];
761.     y= best[1];
762.     for(y2=FFMAX(y-2, ymin); y2<=FFMIN(y+2,ymax); y2++){
                                      ^
763.         for(x2=FFMAX(x-2, xmin); x2<=FFMIN(x+2,xmax); x2++){
764.             CHECK_MV(x2, y2);

static int umh_search(MpegEncContext * s, int *best, int dmin,
                                       int src_index, int ref_index, int const penalty_factor,
                                       int size, int h, int flags)
{
    MotionEstContext * const c= &s->me;
    me_cmp_func cmpf, chroma_cmpf;
    LOAD_COMMON
    LOAD_COMMON2
    int map_generation= c->map_generation;
    int x,y,x2,y2, i, j, d;
    const int dia_size= c->dia_size&0xFE;
    static const int hex[16][2]={{-4,-2}, {-4,-1}, {-4, 0}, {-4, 1}, {-4, 2},
                                 { 4,-2}, { 4,-1}, { 4, 0}, { 4, 1}, { 4, 2},
                                 {-2, 3}, { 0, 4}, { 2, 3},
                                 {-2,-3}, { 0,-4}, { 2,-3},};
    cmpf= s->dsp.me_cmp[size];
    chroma_cmpf= s->dsp.me_cmp[size+1];
    x= best[0];
    y= best[1];
    for(x2=FFMAX(x-dia_size+1, xmin); x2<=FFMIN(x+dia_size-1,xmax); x2+=2){
        CHECK_MV(x2, y);
    }
    for(y2=FFMAX(y-dia_size/2+1, ymin); y2<=FFMIN(y+dia_size/2-1,ymax); y2+=2){
        CHECK_MV(x, y2);
    }
    x= best[0];
    y= best[1];
    for(y2=FFMAX(y-2, ymin); y2<=FFMIN(y+2,ymax); y2++){
        for(x2=FFMAX(x-2, xmin); x2<=FFMIN(x+2,xmax); x2++){
            CHECK_MV(x2, y2);
        }
    }
    for(j=1; j<=dia_size/4; j++){
        for(i=0; i<16; i++){
            CHECK_CLIPPED_MV(x+hex[i][0]*j, y+hex[i][1]*j);
        }
    }
    return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 2);
}
['static int umh_search(MpegEncContext * s, int *best, int dmin,\n                                       int src_index, int ref_index, int const penalty_factor,\n                                       int size, int h, int flags)\n{\n    MotionEstContext * const c= &s->me;\n    me_cmp_func cmpf, chroma_cmpf;\n    LOAD_COMMON\n    LOAD_COMMON2\n    int map_generation= c->map_generation;\n    int x,y,x2,y2, i, j, d;\n    const int dia_size= c->dia_size&0xFE;\n    static const int hex[16][2]={{-4,-2}, {-4,-1}, {-4, 0}, {-4, 1}, {-4, 2},\n                                 { 4,-2}, { 4,-1}, { 4, 0}, { 4, 1}, { 4, 2},\n                                 {-2, 3}, { 0, 4}, { 2, 3},\n                                 {-2,-3}, { 0,-4}, { 2,-3},};\n    cmpf= s->dsp.me_cmp[size];\n    chroma_cmpf= s->dsp.me_cmp[size+1];\n    x= best[0];\n    y= best[1];\n    for(x2=FFMAX(x-dia_size+1, xmin); x2<=FFMIN(x+dia_size-1,xmax); x2+=2){\n        CHECK_MV(x2, y);\n    }\n    for(y2=FFMAX(y-dia_size/2+1, ymin); y2<=FFMIN(y+dia_size/2-1,ymax); y2+=2){\n        CHECK_MV(x, y2);\n    }\n    x= best[0];\n    y= best[1];\n    for(y2=FFMAX(y-2, ymin); y2<=FFMIN(y+2,ymax); y2++){\n        for(x2=FFMAX(x-2, xmin); x2<=FFMIN(x+2,xmax); x2++){\n            CHECK_MV(x2, y2);\n        }\n    }\n    for(j=1; j<=dia_size/4; j++){\n        for(i=0; i<16; i++){\n            CHECK_CLIPPED_MV(x+hex[i][0]*j, y+hex[i][1]*j);\n        }\n    }\n    return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 2);\n}']