libavcodec/twinvq.c:805: error: Uninitialized Value
  The value read from lpc_hist_idx[_] was never initialized.

libavcodec/twinvq.c:805:9: 
803.         }
804. 
805.         decode_lsp(tctx, lpc_idx1[i], lpc_idx2[i], lpc_hist_idx[i], lsp,
             ^
806.                    tctx->lsp_hist[i]);
807. 

static void read_and_decode_spectrum(TwinContext *tctx, GetBitContext *gb,
                                     float *out, enum FrameType ftype)
{
    const ModeTab *mtab = tctx->mtab;
    int channels = tctx->avctx->channels;
    int sub = mtab->fmode[ftype].sub;
    int block_size = mtab->size / sub;
    float gain[channels*sub];
    float ppc_shape[mtab->ppc_shape_len * channels * 4];
    uint8_t bark1[channels][sub][mtab->fmode[ftype].bark_n_coef];
    uint8_t bark_use_hist[channels][sub];
    uint8_t lpc_idx1[channels];
    uint8_t lpc_idx2[channels][tctx->mtab->lsp_split];
    uint8_t lpc_hist_idx[channels];
    int i, j, k;
    dequant(tctx, gb, out, ftype,
            mtab->fmode[ftype].cb0, mtab->fmode[ftype].cb1,
            mtab->fmode[ftype].cb_len_read);
    for (i=0; i < channels; i++)
        for (j=0; j < sub; j++)
            for (k=0; k < mtab->fmode[ftype].bark_n_coef; k++)
                bark1[i][j][k] =
                    get_bits(gb, mtab->fmode[ftype].bark_n_bit);
    for (i=0; i < channels; i++)
        for (j=0; j < sub; j++)
            bark_use_hist[i][j] = get_bits1(gb);
    dec_gain(tctx, gb, ftype, gain);
    for (i=0; i < channels; i++) {
        lpc_hist_idx[i] = get_bits(gb, tctx->mtab->lsp_bit0);
        lpc_idx1    [i] = get_bits(gb, tctx->mtab->lsp_bit1);
        for (j=0; j < tctx->mtab->lsp_split; j++)
            lpc_idx2[i][j] = get_bits(gb, tctx->mtab->lsp_bit2);
    }
    if (ftype == FT_LONG) {
        int cb_len_p = (tctx->n_div[3] + mtab->ppc_shape_len*channels - 1)/
            tctx->n_div[3];
        dequant(tctx, gb, ppc_shape, FT_PPC, mtab->ppc_shape_cb,
                mtab->ppc_shape_cb + cb_len_p*PPC_SHAPE_CB_SIZE, cb_len_p);
    }
    for (i=0; i < channels; i++) {
        float *chunk = out + mtab->size * i;
        float lsp[tctx->mtab->n_lsp];
        for (j=0; j < sub; j++) {
            dec_bark_env(tctx, bark1[i][j], bark_use_hist[i][j], i,
                         tctx->tmp_buf, gain[sub*i+j], ftype);
            tctx->dsp.vector_fmul(chunk + block_size*j, tctx->tmp_buf,
                                  block_size);
        }
        if (ftype == FT_LONG) {
            float pgain_step = 25000. / ((1 << mtab->pgain_bit) - 1);
            int p_coef = get_bits(gb, tctx->mtab->ppc_period_bit);
            int g_coef = get_bits(gb, tctx->mtab->pgain_bit);
            float v = 1./8192*
                mulawinv(pgain_step*g_coef+ pgain_step/2, 25000., PGAIN_MU);
            decode_ppc(tctx, p_coef, ppc_shape + i*mtab->ppc_shape_len, v,
                       chunk);
        }
        decode_lsp(tctx, lpc_idx1[i], lpc_idx2[i], lpc_hist_idx[i], lsp,
                   tctx->lsp_hist[i]);
        dec_lpc_spectrum_inv(tctx, lsp, ftype, tctx->tmp_buf);
        for (j=0; j < mtab->fmode[ftype].sub; j++) {
            tctx->dsp.vector_fmul(chunk, tctx->tmp_buf, block_size);
            chunk += block_size;
        }
    }
}
['static void read_and_decode_spectrum(TwinContext *tctx, GetBitContext *gb,\n                                     float *out, enum FrameType ftype)\n{\n    const ModeTab *mtab = tctx->mtab;\n    int channels = tctx->avctx->channels;\n    int sub = mtab->fmode[ftype].sub;\n    int block_size = mtab->size / sub;\n    float gain[channels*sub];\n    float ppc_shape[mtab->ppc_shape_len * channels * 4];\n    uint8_t bark1[channels][sub][mtab->fmode[ftype].bark_n_coef];\n    uint8_t bark_use_hist[channels][sub];\n    uint8_t lpc_idx1[channels];\n    uint8_t lpc_idx2[channels][tctx->mtab->lsp_split];\n    uint8_t lpc_hist_idx[channels];\n    int i, j, k;\n    dequant(tctx, gb, out, ftype,\n            mtab->fmode[ftype].cb0, mtab->fmode[ftype].cb1,\n            mtab->fmode[ftype].cb_len_read);\n    for (i=0; i < channels; i++)\n        for (j=0; j < sub; j++)\n            for (k=0; k < mtab->fmode[ftype].bark_n_coef; k++)\n                bark1[i][j][k] =\n                    get_bits(gb, mtab->fmode[ftype].bark_n_bit);\n    for (i=0; i < channels; i++)\n        for (j=0; j < sub; j++)\n            bark_use_hist[i][j] = get_bits1(gb);\n    dec_gain(tctx, gb, ftype, gain);\n    for (i=0; i < channels; i++) {\n        lpc_hist_idx[i] = get_bits(gb, tctx->mtab->lsp_bit0);\n        lpc_idx1    [i] = get_bits(gb, tctx->mtab->lsp_bit1);\n        for (j=0; j < tctx->mtab->lsp_split; j++)\n            lpc_idx2[i][j] = get_bits(gb, tctx->mtab->lsp_bit2);\n    }\n    if (ftype == FT_LONG) {\n        int cb_len_p = (tctx->n_div[3] + mtab->ppc_shape_len*channels - 1)/\n            tctx->n_div[3];\n        dequant(tctx, gb, ppc_shape, FT_PPC, mtab->ppc_shape_cb,\n                mtab->ppc_shape_cb + cb_len_p*PPC_SHAPE_CB_SIZE, cb_len_p);\n    }\n    for (i=0; i < channels; i++) {\n        float *chunk = out + mtab->size * i;\n        float lsp[tctx->mtab->n_lsp];\n        for (j=0; j < sub; j++) {\n            dec_bark_env(tctx, bark1[i][j], bark_use_hist[i][j], i,\n                         tctx->tmp_buf, gain[sub*i+j], ftype);\n            tctx->dsp.vector_fmul(chunk + block_size*j, tctx->tmp_buf,\n                                  block_size);\n        }\n        if (ftype == FT_LONG) {\n            float pgain_step = 25000. / ((1 << mtab->pgain_bit) - 1);\n            int p_coef = get_bits(gb, tctx->mtab->ppc_period_bit);\n            int g_coef = get_bits(gb, tctx->mtab->pgain_bit);\n            float v = 1./8192*\n                mulawinv(pgain_step*g_coef+ pgain_step/2, 25000., PGAIN_MU);\n            decode_ppc(tctx, p_coef, ppc_shape + i*mtab->ppc_shape_len, v,\n                       chunk);\n        }\n        decode_lsp(tctx, lpc_idx1[i], lpc_idx2[i], lpc_hist_idx[i], lsp,\n                   tctx->lsp_hist[i]);\n        dec_lpc_spectrum_inv(tctx, lsp, ftype, tctx->tmp_buf);\n        for (j=0; j < mtab->fmode[ftype].sub; j++) {\n            tctx->dsp.vector_fmul(chunk, tctx->tmp_buf, block_size);\n            chunk += block_size;\n        }\n    }\n}']