libavcodec/atrac3.c:367: error: Uninitialized Value
  The value read from band_flags[_] was never initialized.

libavcodec/atrac3.c:367:17: 
365.             int coded_components;
366. 
367.             if (band_flags[b >> 2] == 0)
                     ^
368.                 continue;
369. 

static int decode_tonal_components(GetBitContext *gb,
                                   TonalComponent *components, int num_bands)
{
    int i, b, c, m;
    int nb_components, coding_mode_selector, coding_mode;
    int band_flags[4], mantissa[8];
    int component_count = 0;
    nb_components = get_bits(gb, 5);
    if (nb_components == 0)
        return 0;
    coding_mode_selector = get_bits(gb, 2);
    if (coding_mode_selector == 2)
        return AVERROR_INVALIDDATA;
    coding_mode = coding_mode_selector & 1;
    for (i = 0; i < nb_components; i++) {
        int coded_values_per_component, quant_step_index;
        for (b = 0; b <= num_bands; b++)
            band_flags[b] = get_bits1(gb);
        coded_values_per_component = get_bits(gb, 3);
        quant_step_index = get_bits(gb, 3);
        if (quant_step_index <= 1)
            return AVERROR_INVALIDDATA;
        if (coding_mode_selector == 3)
            coding_mode = get_bits1(gb);
        for (b = 0; b < (num_bands + 1) * 4; b++) {
            int coded_components;
            if (band_flags[b >> 2] == 0)
                continue;
            coded_components = get_bits(gb, 3);
            for (c = 0; c < coded_components; c++) {
                TonalComponent *cmp = &components[component_count];
                int sf_index, coded_values, max_coded_values;
                float scale_factor;
                sf_index = get_bits(gb, 6);
                if (component_count >= 64)
                    return AVERROR_INVALIDDATA;
                cmp->pos = b * 64 + get_bits(gb, 6);
                max_coded_values = SAMPLES_PER_FRAME - cmp->pos;
                coded_values     = coded_values_per_component + 1;
                coded_values     = FFMIN(max_coded_values, coded_values);
                scale_factor = ff_atrac_sf_table[sf_index] *
                               inv_max_quant[quant_step_index];
                read_quant_spectral_coeffs(gb, quant_step_index, coding_mode,
                                           mantissa, coded_values);
                cmp->num_coefs = coded_values;
                for (m = 0; m < coded_values; m++)
                    cmp->coef[m] = mantissa[m] * scale_factor;
                component_count++;
            }
        }
    }
    return component_count;
}
['static int decode_tonal_components(GetBitContext *gb,\n                                   TonalComponent *components, int num_bands)\n{\n    int i, b, c, m;\n    int nb_components, coding_mode_selector, coding_mode;\n    int band_flags[4], mantissa[8];\n    int component_count = 0;\n    nb_components = get_bits(gb, 5);\n    if (nb_components == 0)\n        return 0;\n    coding_mode_selector = get_bits(gb, 2);\n    if (coding_mode_selector == 2)\n        return AVERROR_INVALIDDATA;\n    coding_mode = coding_mode_selector & 1;\n    for (i = 0; i < nb_components; i++) {\n        int coded_values_per_component, quant_step_index;\n        for (b = 0; b <= num_bands; b++)\n            band_flags[b] = get_bits1(gb);\n        coded_values_per_component = get_bits(gb, 3);\n        quant_step_index = get_bits(gb, 3);\n        if (quant_step_index <= 1)\n            return AVERROR_INVALIDDATA;\n        if (coding_mode_selector == 3)\n            coding_mode = get_bits1(gb);\n        for (b = 0; b < (num_bands + 1) * 4; b++) {\n            int coded_components;\n            if (band_flags[b >> 2] == 0)\n                continue;\n            coded_components = get_bits(gb, 3);\n            for (c = 0; c < coded_components; c++) {\n                TonalComponent *cmp = &components[component_count];\n                int sf_index, coded_values, max_coded_values;\n                float scale_factor;\n                sf_index = get_bits(gb, 6);\n                if (component_count >= 64)\n                    return AVERROR_INVALIDDATA;\n                cmp->pos = b * 64 + get_bits(gb, 6);\n                max_coded_values = SAMPLES_PER_FRAME - cmp->pos;\n                coded_values     = coded_values_per_component + 1;\n                coded_values     = FFMIN(max_coded_values, coded_values);\n                scale_factor = ff_atrac_sf_table[sf_index] *\n                               inv_max_quant[quant_step_index];\n                read_quant_spectral_coeffs(gb, quant_step_index, coding_mode,\n                                           mantissa, coded_values);\n                cmp->num_coefs = coded_values;\n                for (m = 0; m < coded_values; m++)\n                    cmp->coef[m] = mantissa[m] * scale_factor;\n                component_count++;\n            }\n        }\n    }\n    return component_count;\n}']