libavcodec/dvenc.c:311: error: Uninitialized Value
  The value read from i was never initialized.

libavcodec/dvenc.c:311:5: 
309.         }
310.     }
311.     bi->next[prev] = i;
         ^
312.     for (bi->cno = 0; max > classes[bi->cno]; bi->cno++)
313.         ;

static av_always_inline int dv_init_enc_block(EncBlockInfo *bi, uint8_t *data,
                                              int linesize, DVVideoContext *s,
                                              int bias)
{
    const int *weight;
    const uint8_t *zigzag_scan;
    LOCAL_ALIGNED_16(int16_t, blk, [64]);
    int i, area;
#if 0
    static const int classes[] = { 12, 24, 36, 0xffff };
#else
    static const int classes[] = { -1, -1, 255, 0xffff };
#endif
    int max  = classes[0];
    int prev = 0;
    assert((((int) blk) & 15) == 0);
    bi->area_q[0]          =
    bi->area_q[1]          =
    bi->area_q[2]          =
    bi->area_q[3]          = 0;
    bi->partial_bit_count  = 0;
    bi->partial_bit_buffer = 0;
    bi->cur_ac             = 0;
    if (data) {
        bi->dct_mode = dv_guess_dct_mode(s, data, linesize);
        s->get_pixels(blk, data, linesize);
        s->fdct[bi->dct_mode](blk);
    } else {
        memset(blk, 0, 64 * sizeof(*blk));
        bi->dct_mode = 0;
    }
    bi->mb[0] = blk[0];
    zigzag_scan = bi->dct_mode ? ff_dv_zigzag248_direct : ff_zigzag_direct;
    weight      = bi->dct_mode ? dv_weight_248 : dv_weight_88;
    for (area = 0; area < 4; area++) {
        bi->prev[area]     = prev;
        bi->bit_size[area] = 1;
        for (i = mb_area_start[area]; i < mb_area_start[area + 1]; i++) {
            int level = blk[zigzag_scan[i]];
            if (level + 15 > 30U) {
                bi->sign[i] = (level >> 31) & 1;
                level     = (FFABS(level) * weight[i] + (1 << (dv_weight_bits + 3))) >>
                            (dv_weight_bits + 4);
                bi->mb[i] = level;
                if (level > max)
                    max = level;
                bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, level);
                bi->next[prev]      = i;
                prev                = i;
            }
        }
    }
    bi->next[prev] = i;
    for (bi->cno = 0; max > classes[bi->cno]; bi->cno++)
        ;
    bi->cno += bias;
    if (bi->cno >= 3) {
        bi->cno = 3;
        prev    = 0;
        i       = bi->next[prev];
        for (area = 0; area < 4; area++) {
            bi->prev[area]     = prev;
            bi->bit_size[area] = 1;
            for (; i < mb_area_start[area + 1]; i = bi->next[i]) {
                bi->mb[i] >>= 1;
                if (bi->mb[i]) {
                    bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, bi->mb[i]);
                    bi->next[prev]      = i;
                    prev                = i;
                }
            }
        }
        bi->next[prev] = i;
    }
    return bi->bit_size[0] + bi->bit_size[1] +
           bi->bit_size[2] + bi->bit_size[3];
}
['static av_always_inline int dv_init_enc_block(EncBlockInfo *bi, uint8_t *data,\n                                              int linesize, DVVideoContext *s,\n                                              int bias)\n{\n    const int *weight;\n    const uint8_t *zigzag_scan;\n    LOCAL_ALIGNED_16(int16_t, blk, [64]);\n    int i, area;\n#if 0\n    static const int classes[] = { 12, 24, 36, 0xffff };\n#else\n    static const int classes[] = { -1, -1, 255, 0xffff };\n#endif\n    int max  = classes[0];\n    int prev = 0;\n    assert((((int) blk) & 15) == 0);\n    bi->area_q[0]          =\n    bi->area_q[1]          =\n    bi->area_q[2]          =\n    bi->area_q[3]          = 0;\n    bi->partial_bit_count  = 0;\n    bi->partial_bit_buffer = 0;\n    bi->cur_ac             = 0;\n    if (data) {\n        bi->dct_mode = dv_guess_dct_mode(s, data, linesize);\n        s->get_pixels(blk, data, linesize);\n        s->fdct[bi->dct_mode](blk);\n    } else {\n        memset(blk, 0, 64 * sizeof(*blk));\n        bi->dct_mode = 0;\n    }\n    bi->mb[0] = blk[0];\n    zigzag_scan = bi->dct_mode ? ff_dv_zigzag248_direct : ff_zigzag_direct;\n    weight      = bi->dct_mode ? dv_weight_248 : dv_weight_88;\n    for (area = 0; area < 4; area++) {\n        bi->prev[area]     = prev;\n        bi->bit_size[area] = 1;\n        for (i = mb_area_start[area]; i < mb_area_start[area + 1]; i++) {\n            int level = blk[zigzag_scan[i]];\n            if (level + 15 > 30U) {\n                bi->sign[i] = (level >> 31) & 1;\n                level     = (FFABS(level) * weight[i] + (1 << (dv_weight_bits + 3))) >>\n                            (dv_weight_bits + 4);\n                bi->mb[i] = level;\n                if (level > max)\n                    max = level;\n                bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, level);\n                bi->next[prev]      = i;\n                prev                = i;\n            }\n        }\n    }\n    bi->next[prev] = i;\n    for (bi->cno = 0; max > classes[bi->cno]; bi->cno++)\n        ;\n    bi->cno += bias;\n    if (bi->cno >= 3) {\n        bi->cno = 3;\n        prev    = 0;\n        i       = bi->next[prev];\n        for (area = 0; area < 4; area++) {\n            bi->prev[area]     = prev;\n            bi->bit_size[area] = 1;\n            for (; i < mb_area_start[area + 1]; i = bi->next[i]) {\n                bi->mb[i] >>= 1;\n                if (bi->mb[i]) {\n                    bi->bit_size[area] += dv_rl2vlc_size(i - prev - 1, bi->mb[i]);\n                    bi->next[prev]      = i;\n                    prev                = i;\n                }\n            }\n        }\n        bi->next[prev] = i;\n    }\n    return bi->bit_size[0] + bi->bit_size[1] +\n           bi->bit_size[2] + bi->bit_size[3];\n}']