libavcodec/mpegvideo_motion.c:477: error: Uninitialized Value
  The value read from ptr[_] was never initialized.

libavcodec/mpegvideo_motion.c:477:13: 
475.     for (i = 0; i < 5; i++) {
476.         if (i && mv[i][0] == mv[MID][0] && mv[i][1] == mv[MID][1]) {
477.             ptr[i] = ptr[MID];
                 ^
478.         } else {
479.             ptr[i] = s->sc.obmc_scratchpad + 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->sc.obmc_scratchpad + 8 * (i & 1) +
                     s->linesize * 8 * (i >> 1);
            hpel_motion(s, ptr[i], src, src_x, src_y, 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->sc.obmc_scratchpad + 8 * (i & 1) +\n                     s->linesize * 8 * (i >> 1);\n            hpel_motion(s, ptr[i], src, src_x, src_y, pix_op,\n                        mv[i][0], mv[i][1]);\n        }\n    }\n    put_obmc(dest, ptr, s->linesize);\n}']