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

libavcodec/motion_est_template.c:681:13: 
679. 
680.             CHECK_CLIPPED_MV(x  -dia_size    , y);
681.             CHECK_CLIPPED_MV(x+  dia_size    , y);
                 ^
682.             CHECK_CLIPPED_MV(x+( dia_size>>1), y+dia_size);
683.             CHECK_CLIPPED_MV(x+( dia_size>>1), y-dia_size);

static int hex_search(MpegEncContext * s, int *best, int dmin,
                                       int src_index, int ref_index, int const penalty_factor,
                                       int size, int h, int flags, int dia_size)
{
    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 dec= dia_size & (dia_size-1);
    cmpf= s->dsp.me_cmp[size];
    chroma_cmpf= s->dsp.me_cmp[size+1];
    for(;dia_size; dia_size= dec ? dia_size-1 : dia_size>>1){
        do{
            x= best[0];
            y= best[1];
            CHECK_CLIPPED_MV(x  -dia_size    , y);
            CHECK_CLIPPED_MV(x+  dia_size    , y);
            CHECK_CLIPPED_MV(x+( dia_size>>1), y+dia_size);
            CHECK_CLIPPED_MV(x+( dia_size>>1), y-dia_size);
            if(dia_size>1){
                CHECK_CLIPPED_MV(x+(-dia_size>>1), y+dia_size);
                CHECK_CLIPPED_MV(x+(-dia_size>>1), y-dia_size);
            }
        }while(best[0] != x || best[1] != y);
    }
    return dmin;
}
['static int hex_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, int dia_size)\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 dec= dia_size & (dia_size-1);\n    cmpf= s->dsp.me_cmp[size];\n    chroma_cmpf= s->dsp.me_cmp[size+1];\n    for(;dia_size; dia_size= dec ? dia_size-1 : dia_size>>1){\n        do{\n            x= best[0];\n            y= best[1];\n            CHECK_CLIPPED_MV(x  -dia_size    , y);\n            CHECK_CLIPPED_MV(x+  dia_size    , y);\n            CHECK_CLIPPED_MV(x+( dia_size>>1), y+dia_size);\n            CHECK_CLIPPED_MV(x+( dia_size>>1), y-dia_size);\n            if(dia_size>1){\n                CHECK_CLIPPED_MV(x+(-dia_size>>1), y+dia_size);\n                CHECK_CLIPPED_MV(x+(-dia_size>>1), y-dia_size);\n            }\n        }while(best[0] != x || best[1] != y);\n    }\n    return dmin;\n}']