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

libavcodec/motion_est_template.c:806:5: 
804.     CHECK_CLIPPED_MV(x+1, y);
805.     CHECK_CLIPPED_MV(x, y+1);
806.     CHECK_CLIPPED_MV(x-1, y);
         ^
807.     CHECK_CLIPPED_MV(x, y-1);
808.     best[0]= x;

static int full_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, d;
    const int dia_size= c->dia_size&0xFF;
    cmpf= s->dsp.me_cmp[size];
    chroma_cmpf= s->dsp.me_cmp[size+1];
    for(y=FFMAX(-dia_size, ymin); y<=FFMIN(dia_size,ymax); y++){
        for(x=FFMAX(-dia_size, xmin); x<=FFMIN(dia_size,xmax); x++){
            CHECK_MV(x, y);
        }
    }
    x= best[0];
    y= best[1];
    d= dmin;
    CHECK_CLIPPED_MV(x  , y);
    CHECK_CLIPPED_MV(x+1, y);
    CHECK_CLIPPED_MV(x, y+1);
    CHECK_CLIPPED_MV(x-1, y);
    CHECK_CLIPPED_MV(x, y-1);
    best[0]= x;
    best[1]= y;
    return d;
}
['static int full_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, d;\n    const int dia_size= c->dia_size&0xFF;\n    cmpf= s->dsp.me_cmp[size];\n    chroma_cmpf= s->dsp.me_cmp[size+1];\n    for(y=FFMAX(-dia_size, ymin); y<=FFMIN(dia_size,ymax); y++){\n        for(x=FFMAX(-dia_size, xmin); x<=FFMIN(dia_size,xmax); x++){\n            CHECK_MV(x, y);\n        }\n    }\n    x= best[0];\n    y= best[1];\n    d= dmin;\n    CHECK_CLIPPED_MV(x  , y);\n    CHECK_CLIPPED_MV(x+1, y);\n    CHECK_CLIPPED_MV(x, y+1);\n    CHECK_CLIPPED_MV(x-1, y);\n    CHECK_CLIPPED_MV(x, y-1);\n    best[0]= x;\n    best[1]= y;\n    return d;\n}']