libavcodec/vc1dec.c:4953: error: Uninitialized Value
  The value read from xadv[_] was never initialized.

libavcodec/vc1dec.c:4953:49: 
4951.                 }
4952.                 next_line = FFMIN(yline + 1, (v->sprite_height >> !!plane) - 1) * iline;
4953.                 if (!(xoff[sprite] & 0xFFFF) && xadv[sprite] == 1 << 16) {
                                                      ^
4954.                         src_h[sprite][0] = iplane + (xoff[sprite] >> 16) +  yline      * iline;
4955.                     if (ysub[sprite])

static void vc1_draw_sprites(VC1Context *v, SpriteData* sd)
{
    int i, plane, row, sprite;
    int sr_cache[2][2] = { { -1, -1 }, { -1, -1 } };
    uint8_t* src_h[2][2];
    int xoff[2], xadv[2], yoff[2], yadv[2], alpha;
    int ysub[2];
    MpegEncContext *s = &v->s;
    for (i = 0; i < 2; i++) {
        xoff[i] = av_clip(sd->coefs[i][2], 0, v->sprite_width-1 << 16);
        xadv[i] = sd->coefs[i][0];
        if (xadv[i] != 1<<16 || (v->sprite_width << 16) - (v->output_width << 16) - xoff[i])
            xadv[i] = av_clip(xadv[i], 0, ((v->sprite_width<<16) - xoff[i] - 1) / v->output_width);
        yoff[i] = av_clip(sd->coefs[i][5], 0, v->sprite_height-1 << 16);
        yadv[i] = av_clip(sd->coefs[i][4], 0, ((v->sprite_height << 16) - yoff[i]) / v->output_height);
    }
    alpha = av_clip(sd->coefs[1][6], 0, (1<<16) - 1);
    for (plane = 0; plane < (s->flags&CODEC_FLAG_GRAY ? 1 : 3); plane++) {
        int width = v->output_width>>!!plane;
        for (row = 0; row < v->output_height>>!!plane; row++) {
            uint8_t *dst = v->sprite_output_frame.data[plane] +
                           v->sprite_output_frame.linesize[plane] * row;
            for (sprite = 0; sprite <= v->two_sprites; sprite++) {
                uint8_t *iplane = s->current_picture.f.data[plane];
                int      iline  = s->current_picture.f.linesize[plane];
                int      ycoord = yoff[sprite] + yadv[sprite] * row;
                int      yline  = ycoord >> 16;
                int      next_line;
                ysub[sprite] = ycoord & 0xFFFF;
                if (sprite) {
                    iplane = s->last_picture.f.data[plane];
                    iline  = s->last_picture.f.linesize[plane];
                }
                next_line = FFMIN(yline + 1, (v->sprite_height >> !!plane) - 1) * iline;
                if (!(xoff[sprite] & 0xFFFF) && xadv[sprite] == 1 << 16) {
                        src_h[sprite][0] = iplane + (xoff[sprite] >> 16) +  yline      * iline;
                    if (ysub[sprite])
                        src_h[sprite][1] = iplane + (xoff[sprite] >> 16) + next_line;
                } else {
                    if (sr_cache[sprite][0] != yline) {
                        if (sr_cache[sprite][1] == yline) {
                            FFSWAP(uint8_t*, v->sr_rows[sprite][0], v->sr_rows[sprite][1]);
                            FFSWAP(int,        sr_cache[sprite][0],   sr_cache[sprite][1]);
                        } else {
                            v->vc1dsp.sprite_h(v->sr_rows[sprite][0], iplane + yline * iline, xoff[sprite], xadv[sprite], width);
                            sr_cache[sprite][0] = yline;
                        }
                    }
                    if (ysub[sprite] && sr_cache[sprite][1] != yline + 1) {
                        v->vc1dsp.sprite_h(v->sr_rows[sprite][1],
                                           iplane + next_line, xoff[sprite],
                                           xadv[sprite], width);
                        sr_cache[sprite][1] = yline + 1;
                    }
                    src_h[sprite][0] = v->sr_rows[sprite][0];
                    src_h[sprite][1] = v->sr_rows[sprite][1];
                }
            }
            if (!v->two_sprites) {
                if (ysub[0]) {
                    v->vc1dsp.sprite_v_single(dst, src_h[0][0], src_h[0][1], ysub[0], width);
                } else {
                    memcpy(dst, src_h[0][0], width);
                }
            } else {
                if (ysub[0] && ysub[1]) {
                    v->vc1dsp.sprite_v_double_twoscale(dst, src_h[0][0], src_h[0][1], ysub[0],
                                                       src_h[1][0], src_h[1][1], ysub[1], alpha, width);
                } else if (ysub[0]) {
                    v->vc1dsp.sprite_v_double_onescale(dst, src_h[0][0], src_h[0][1], ysub[0],
                                                       src_h[1][0], alpha, width);
                } else if (ysub[1]) {
                    v->vc1dsp.sprite_v_double_onescale(dst, src_h[1][0], src_h[1][1], ysub[1],
                                                       src_h[0][0], (1<<16)-1-alpha, width);
                } else {
                    v->vc1dsp.sprite_v_double_noscale(dst, src_h[0][0], src_h[1][0], alpha, width);
                }
            }
        }
        if (!plane) {
            for (i = 0; i < 2; i++) {
                xoff[i] >>= 1;
                yoff[i] >>= 1;
            }
        }
    }
}
['static void vc1_draw_sprites(VC1Context *v, SpriteData* sd)\n{\n    int i, plane, row, sprite;\n    int sr_cache[2][2] = { { -1, -1 }, { -1, -1 } };\n    uint8_t* src_h[2][2];\n    int xoff[2], xadv[2], yoff[2], yadv[2], alpha;\n    int ysub[2];\n    MpegEncContext *s = &v->s;\n    for (i = 0; i < 2; i++) {\n        xoff[i] = av_clip(sd->coefs[i][2], 0, v->sprite_width-1 << 16);\n        xadv[i] = sd->coefs[i][0];\n        if (xadv[i] != 1<<16 || (v->sprite_width << 16) - (v->output_width << 16) - xoff[i])\n            xadv[i] = av_clip(xadv[i], 0, ((v->sprite_width<<16) - xoff[i] - 1) / v->output_width);\n        yoff[i] = av_clip(sd->coefs[i][5], 0, v->sprite_height-1 << 16);\n        yadv[i] = av_clip(sd->coefs[i][4], 0, ((v->sprite_height << 16) - yoff[i]) / v->output_height);\n    }\n    alpha = av_clip(sd->coefs[1][6], 0, (1<<16) - 1);\n    for (plane = 0; plane < (s->flags&CODEC_FLAG_GRAY ? 1 : 3); plane++) {\n        int width = v->output_width>>!!plane;\n        for (row = 0; row < v->output_height>>!!plane; row++) {\n            uint8_t *dst = v->sprite_output_frame.data[plane] +\n                           v->sprite_output_frame.linesize[plane] * row;\n            for (sprite = 0; sprite <= v->two_sprites; sprite++) {\n                uint8_t *iplane = s->current_picture.f.data[plane];\n                int      iline  = s->current_picture.f.linesize[plane];\n                int      ycoord = yoff[sprite] + yadv[sprite] * row;\n                int      yline  = ycoord >> 16;\n                int      next_line;\n                ysub[sprite] = ycoord & 0xFFFF;\n                if (sprite) {\n                    iplane = s->last_picture.f.data[plane];\n                    iline  = s->last_picture.f.linesize[plane];\n                }\n                next_line = FFMIN(yline + 1, (v->sprite_height >> !!plane) - 1) * iline;\n                if (!(xoff[sprite] & 0xFFFF) && xadv[sprite] == 1 << 16) {\n                        src_h[sprite][0] = iplane + (xoff[sprite] >> 16) +  yline      * iline;\n                    if (ysub[sprite])\n                        src_h[sprite][1] = iplane + (xoff[sprite] >> 16) + next_line;\n                } else {\n                    if (sr_cache[sprite][0] != yline) {\n                        if (sr_cache[sprite][1] == yline) {\n                            FFSWAP(uint8_t*, v->sr_rows[sprite][0], v->sr_rows[sprite][1]);\n                            FFSWAP(int,        sr_cache[sprite][0],   sr_cache[sprite][1]);\n                        } else {\n                            v->vc1dsp.sprite_h(v->sr_rows[sprite][0], iplane + yline * iline, xoff[sprite], xadv[sprite], width);\n                            sr_cache[sprite][0] = yline;\n                        }\n                    }\n                    if (ysub[sprite] && sr_cache[sprite][1] != yline + 1) {\n                        v->vc1dsp.sprite_h(v->sr_rows[sprite][1],\n                                           iplane + next_line, xoff[sprite],\n                                           xadv[sprite], width);\n                        sr_cache[sprite][1] = yline + 1;\n                    }\n                    src_h[sprite][0] = v->sr_rows[sprite][0];\n                    src_h[sprite][1] = v->sr_rows[sprite][1];\n                }\n            }\n            if (!v->two_sprites) {\n                if (ysub[0]) {\n                    v->vc1dsp.sprite_v_single(dst, src_h[0][0], src_h[0][1], ysub[0], width);\n                } else {\n                    memcpy(dst, src_h[0][0], width);\n                }\n            } else {\n                if (ysub[0] && ysub[1]) {\n                    v->vc1dsp.sprite_v_double_twoscale(dst, src_h[0][0], src_h[0][1], ysub[0],\n                                                       src_h[1][0], src_h[1][1], ysub[1], alpha, width);\n                } else if (ysub[0]) {\n                    v->vc1dsp.sprite_v_double_onescale(dst, src_h[0][0], src_h[0][1], ysub[0],\n                                                       src_h[1][0], alpha, width);\n                } else if (ysub[1]) {\n                    v->vc1dsp.sprite_v_double_onescale(dst, src_h[1][0], src_h[1][1], ysub[1],\n                                                       src_h[0][0], (1<<16)-1-alpha, width);\n                } else {\n                    v->vc1dsp.sprite_v_double_noscale(dst, src_h[0][0], src_h[1][0], alpha, width);\n                }\n            }\n        }\n        if (!plane) {\n            for (i = 0; i < 2; i++) {\n                xoff[i] >>= 1;\n                yoff[i] >>= 1;\n            }\n        }\n    }\n}']