libavcodec/mpegvideo_common.h:422: error: Uninitialized Value
  The value read from ptr[_] was never initialized.

libavcodec/mpegvideo_common.h:422:13: 
420.     for(i=0; i<5; i++){
421.         if(i && mv[i][0]==mv[MID][0] && mv[i][1]==mv[MID][1]){
422.             ptr[i]= ptr[MID];
                 ^
423.         }else{
424.             ptr[i]= s->obmc_scratchpad + 8*(i&1) + s->linesize*8*(i>>1);

static inline void obmc_motion(MpegEncContext *s,
                               uint8_t *dest, uint8_t *src,
                               int src_x, int src_y,
                               op_pixels_func *pix_op,
                               int16_t mv[5][2] )
#define MID    0
{
    int i;
    uint8_t *ptr[5];
    assert(s->quarter_sample==0);
    for(i=0; i<5; i++){
        if(i && mv[i][0]==mv[MID][0] && mv[i][1]==mv[MID][1]){
            ptr[i]= ptr[MID];
        }else{
            ptr[i]= s->obmc_scratchpad + 8*(i&1) + s->linesize*8*(i>>1);
            hpel_motion(s, ptr[i], src, 0, 0,
                        src_x, src_y,
                        s->width, s->height, s->linesize,
                        s->h_edge_pos, s->v_edge_pos,
                        8, 8, pix_op,
                        mv[i][0], mv[i][1]);
        }
    }
    put_obmc(dest, ptr, s->linesize);
}
['static inline void obmc_motion(MpegEncContext *s,\n                               uint8_t *dest, uint8_t *src,\n                               int src_x, int src_y,\n                               op_pixels_func *pix_op,\n                               int16_t mv[5][2] )\n#define MID    0\n{\n    int i;\n    uint8_t *ptr[5];\n    assert(s->quarter_sample==0);\n    for(i=0; i<5; i++){\n        if(i && mv[i][0]==mv[MID][0] && mv[i][1]==mv[MID][1]){\n            ptr[i]= ptr[MID];\n        }else{\n            ptr[i]= s->obmc_scratchpad + 8*(i&1) + s->linesize*8*(i>>1);\n            hpel_motion(s, ptr[i], src, 0, 0,\n                        src_x, src_y,\n                        s->width, s->height, s->linesize,\n                        s->h_edge_pos, s->v_edge_pos,\n                        8, 8, pix_op,\n                        mv[i][0], mv[i][1]);\n        }\n    }\n    put_obmc(dest, ptr, s->linesize);\n}']