libavcodec/dca.c:1475: error: Uninitialized Value
  The value read from channels was never initialized.

libavcodec/dca.c:1475:13: 
1473.             if (get_bits_left(&s->gb) < 0)
1474.                 return -1;
1475.             dca_exss_skip_mix_coeffs(&s->gb, channels, s->mix_config_num_ch[i]);
                  ^
1476.             if (embedded_6ch)
1477.                 dca_exss_skip_mix_coeffs(&s->gb, 6, s->mix_config_num_ch[i]);

static int dca_exss_parse_asset_header(DCAContext *s)
{
    int header_pos = get_bits_count(&s->gb);
    int header_size;
    int channels;
    int embedded_stereo = 0;
    int embedded_6ch = 0;
    int drc_code_present;
    int extensions_mask;
    int i, j;
    if (get_bits_left(&s->gb) < 16)
        return -1;
    header_size = get_bits(&s->gb, 9) + 1;
    skip_bits(&s->gb, 3);
    if (s->static_fields) {
        if (get_bits1(&s->gb))
            skip_bits(&s->gb, 4);
        if (get_bits1(&s->gb))
            skip_bits_long(&s->gb, 24);
        if (get_bits1(&s->gb)) {
            int text_length = get_bits(&s->gb, 10) + 1;
            if (get_bits_left(&s->gb) < text_length * 8)
                return -1;
            skip_bits_long(&s->gb, text_length * 8);
        }
        skip_bits(&s->gb, 5);
        skip_bits(&s->gb, 4);
        channels = get_bits(&s->gb, 8) + 1;
        if (get_bits1(&s->gb)) {
            int spkr_remap_sets;
            int spkr_mask_size = 16;
            int num_spkrs[7];
            if (channels > 2)
                embedded_stereo = get_bits1(&s->gb);
            if (channels > 6)
                embedded_6ch = get_bits1(&s->gb);
            if (get_bits1(&s->gb)) {
                spkr_mask_size = (get_bits(&s->gb, 2) + 1) << 2;
                skip_bits(&s->gb, spkr_mask_size);
            }
            spkr_remap_sets = get_bits(&s->gb, 3);
            for (i = 0; i < spkr_remap_sets; i++) {
                num_spkrs[i] = dca_exss_mask2count(get_bits(&s->gb, spkr_mask_size));
            }
            for (i = 0; i < spkr_remap_sets; i++) {
                int num_dec_ch_remaps = get_bits(&s->gb, 5) + 1;
                if (get_bits_left(&s->gb) < 0)
                    return -1;
                for (j = 0; j < num_spkrs[i]; j++) {
                    int remap_dec_ch_mask = get_bits_long(&s->gb, num_dec_ch_remaps);
                    int num_dec_ch = av_popcount(remap_dec_ch_mask);
                    skip_bits_long(&s->gb, num_dec_ch * 5);
                }
            }
        } else {
            skip_bits(&s->gb, 3);
        }
    }
    drc_code_present = get_bits1(&s->gb);
    if (drc_code_present)
        get_bits(&s->gb, 8);
    if (get_bits1(&s->gb))
        skip_bits(&s->gb, 5);
    if (drc_code_present && embedded_stereo)
        get_bits(&s->gb, 8);
    if (s->mix_metadata && get_bits1(&s->gb)) {
        skip_bits(&s->gb, 1);
        skip_bits(&s->gb, 6);
        if (get_bits(&s->gb, 2) != 3)
            skip_bits(&s->gb, 3);
        else
            skip_bits(&s->gb, 8);
        if (get_bits1(&s->gb))
            for (i = 0; i < s->num_mix_configs; i++)
                skip_bits_long(&s->gb, s->mix_config_num_ch[i] * 6);
        else
            skip_bits_long(&s->gb, s->num_mix_configs * 6);
        for (i = 0; i < s->num_mix_configs; i++) {
            if (get_bits_left(&s->gb) < 0)
                return -1;
            dca_exss_skip_mix_coeffs(&s->gb, channels, s->mix_config_num_ch[i]);
            if (embedded_6ch)
                dca_exss_skip_mix_coeffs(&s->gb, 6, s->mix_config_num_ch[i]);
            if (embedded_stereo)
                dca_exss_skip_mix_coeffs(&s->gb, 2, s->mix_config_num_ch[i]);
        }
    }
    switch (get_bits(&s->gb, 2)) {
    case 0: extensions_mask = get_bits(&s->gb, 12); break;
    case 1: extensions_mask = DCA_EXT_EXSS_XLL;     break;
    case 2: extensions_mask = DCA_EXT_EXSS_LBR;     break;
    case 3: extensions_mask = 0;     break;
    }
    if (get_bits_left(&s->gb) < 0)
        return -1;
    if (get_bits_count(&s->gb) - header_pos > header_size * 8) {
        av_log(s->avctx, AV_LOG_WARNING, "Asset header size mismatch.\n");
        return -1;
    }
    skip_bits_long(&s->gb, header_pos + header_size * 8 - get_bits_count(&s->gb));
    if (extensions_mask & DCA_EXT_EXSS_XLL)
        s->profile = FF_PROFILE_DTS_HD_MA;
    else if (extensions_mask & DCA_EXT_EXSS_XBR)
        s->profile = FF_PROFILE_DTS_HD_HRA;
    else if (extensions_mask & DCA_EXT_EXSS_X96)
        s->profile = FF_PROFILE_DTS_96_24;
    else if (extensions_mask & DCA_EXT_EXSS_XXCH)
        s->profile = FFMAX(s->profile, FF_PROFILE_DTS_ES);
    if (!(extensions_mask & DCA_EXT_CORE))
        av_log(s->avctx, AV_LOG_WARNING, "DTS core detection mismatch.\n");
    if (!!(extensions_mask & DCA_EXT_XCH) != s->xch_present)
        av_log(s->avctx, AV_LOG_WARNING, "DTS XCh detection mismatch.\n");
    if (!!(extensions_mask & DCA_EXT_XXCH) != s->xxch_present)
        av_log(s->avctx, AV_LOG_WARNING, "DTS XXCh detection mismatch.\n");
    if (!!(extensions_mask & DCA_EXT_X96) != s->x96_present)
        av_log(s->avctx, AV_LOG_WARNING, "DTS X96 detection mismatch.\n");
    return 0;
}
['static int dca_exss_parse_asset_header(DCAContext *s)\n{\n    int header_pos = get_bits_count(&s->gb);\n    int header_size;\n    int channels;\n    int embedded_stereo = 0;\n    int embedded_6ch = 0;\n    int drc_code_present;\n    int extensions_mask;\n    int i, j;\n    if (get_bits_left(&s->gb) < 16)\n        return -1;\n    header_size = get_bits(&s->gb, 9) + 1;\n    skip_bits(&s->gb, 3);\n    if (s->static_fields) {\n        if (get_bits1(&s->gb))\n            skip_bits(&s->gb, 4);\n        if (get_bits1(&s->gb))\n            skip_bits_long(&s->gb, 24);\n        if (get_bits1(&s->gb)) {\n            int text_length = get_bits(&s->gb, 10) + 1;\n            if (get_bits_left(&s->gb) < text_length * 8)\n                return -1;\n            skip_bits_long(&s->gb, text_length * 8);\n        }\n        skip_bits(&s->gb, 5);\n        skip_bits(&s->gb, 4);\n        channels = get_bits(&s->gb, 8) + 1;\n        if (get_bits1(&s->gb)) {\n            int spkr_remap_sets;\n            int spkr_mask_size = 16;\n            int num_spkrs[7];\n            if (channels > 2)\n                embedded_stereo = get_bits1(&s->gb);\n            if (channels > 6)\n                embedded_6ch = get_bits1(&s->gb);\n            if (get_bits1(&s->gb)) {\n                spkr_mask_size = (get_bits(&s->gb, 2) + 1) << 2;\n                skip_bits(&s->gb, spkr_mask_size);\n            }\n            spkr_remap_sets = get_bits(&s->gb, 3);\n            for (i = 0; i < spkr_remap_sets; i++) {\n                num_spkrs[i] = dca_exss_mask2count(get_bits(&s->gb, spkr_mask_size));\n            }\n            for (i = 0; i < spkr_remap_sets; i++) {\n                int num_dec_ch_remaps = get_bits(&s->gb, 5) + 1;\n                if (get_bits_left(&s->gb) < 0)\n                    return -1;\n                for (j = 0; j < num_spkrs[i]; j++) {\n                    int remap_dec_ch_mask = get_bits_long(&s->gb, num_dec_ch_remaps);\n                    int num_dec_ch = av_popcount(remap_dec_ch_mask);\n                    skip_bits_long(&s->gb, num_dec_ch * 5);\n                }\n            }\n        } else {\n            skip_bits(&s->gb, 3);\n        }\n    }\n    drc_code_present = get_bits1(&s->gb);\n    if (drc_code_present)\n        get_bits(&s->gb, 8);\n    if (get_bits1(&s->gb))\n        skip_bits(&s->gb, 5);\n    if (drc_code_present && embedded_stereo)\n        get_bits(&s->gb, 8);\n    if (s->mix_metadata && get_bits1(&s->gb)) {\n        skip_bits(&s->gb, 1);\n        skip_bits(&s->gb, 6);\n        if (get_bits(&s->gb, 2) != 3)\n            skip_bits(&s->gb, 3);\n        else\n            skip_bits(&s->gb, 8);\n        if (get_bits1(&s->gb))\n            for (i = 0; i < s->num_mix_configs; i++)\n                skip_bits_long(&s->gb, s->mix_config_num_ch[i] * 6);\n        else\n            skip_bits_long(&s->gb, s->num_mix_configs * 6);\n        for (i = 0; i < s->num_mix_configs; i++) {\n            if (get_bits_left(&s->gb) < 0)\n                return -1;\n            dca_exss_skip_mix_coeffs(&s->gb, channels, s->mix_config_num_ch[i]);\n            if (embedded_6ch)\n                dca_exss_skip_mix_coeffs(&s->gb, 6, s->mix_config_num_ch[i]);\n            if (embedded_stereo)\n                dca_exss_skip_mix_coeffs(&s->gb, 2, s->mix_config_num_ch[i]);\n        }\n    }\n    switch (get_bits(&s->gb, 2)) {\n    case 0: extensions_mask = get_bits(&s->gb, 12); break;\n    case 1: extensions_mask = DCA_EXT_EXSS_XLL;     break;\n    case 2: extensions_mask = DCA_EXT_EXSS_LBR;     break;\n    case 3: extensions_mask = 0;     break;\n    }\n    if (get_bits_left(&s->gb) < 0)\n        return -1;\n    if (get_bits_count(&s->gb) - header_pos > header_size * 8) {\n        av_log(s->avctx, AV_LOG_WARNING, "Asset header size mismatch.\\n");\n        return -1;\n    }\n    skip_bits_long(&s->gb, header_pos + header_size * 8 - get_bits_count(&s->gb));\n    if (extensions_mask & DCA_EXT_EXSS_XLL)\n        s->profile = FF_PROFILE_DTS_HD_MA;\n    else if (extensions_mask & DCA_EXT_EXSS_XBR)\n        s->profile = FF_PROFILE_DTS_HD_HRA;\n    else if (extensions_mask & DCA_EXT_EXSS_X96)\n        s->profile = FF_PROFILE_DTS_96_24;\n    else if (extensions_mask & DCA_EXT_EXSS_XXCH)\n        s->profile = FFMAX(s->profile, FF_PROFILE_DTS_ES);\n    if (!(extensions_mask & DCA_EXT_CORE))\n        av_log(s->avctx, AV_LOG_WARNING, "DTS core detection mismatch.\\n");\n    if (!!(extensions_mask & DCA_EXT_XCH) != s->xch_present)\n        av_log(s->avctx, AV_LOG_WARNING, "DTS XCh detection mismatch.\\n");\n    if (!!(extensions_mask & DCA_EXT_XXCH) != s->xxch_present)\n        av_log(s->avctx, AV_LOG_WARNING, "DTS XXCh detection mismatch.\\n");\n    if (!!(extensions_mask & DCA_EXT_X96) != s->x96_present)\n        av_log(s->avctx, AV_LOG_WARNING, "DTS X96 detection mismatch.\\n");\n    return 0;\n}']