libavcodec/ralf.c:89: error: Uninitialized Value
  The value read from counts[_] was never initialized.

libavcodec/ralf.c:89:9: 
87.     for (i = 0; i < elems; i++) {
88.         cur_len  = (nb ? *data & 0xF : *data >> 4) + 1;
89.         counts[cur_len]++;
            ^
90.         max_bits = FFMAX(max_bits, cur_len);
91.         lens[i]  = cur_len;

static int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems)
{
    uint8_t  lens[MAX_ELEMS];
    uint16_t codes[MAX_ELEMS];
    int counts[17], prefixes[18];
    int i, cur_len;
    int max_bits = 0;
    int nb = 0;
    for (i = 0; i <= 16; i++)
        counts[i] = 0;
    for (i = 0; i < elems; i++) {
        cur_len  = (nb ? *data & 0xF : *data >> 4) + 1;
        counts[cur_len]++;
        max_bits = FFMAX(max_bits, cur_len);
        lens[i]  = cur_len;
        data    += nb;
        nb      ^= 1;
    }
    prefixes[1] = 0;
    for (i = 1; i <= 16; i++)
        prefixes[i + 1] = (prefixes[i] + counts[i]) << 1;
    for (i = 0; i < elems; i++)
        codes[i] = prefixes[lens[i]]++;
    return ff_init_vlc_sparse(vlc, FFMIN(max_bits, 9), elems,
                              lens, 1, 1, codes, 2, 2, NULL, 0, 0, 0);
}
['static int init_ralf_vlc(VLC *vlc, const uint8_t *data, int elems)\n{\n    uint8_t  lens[MAX_ELEMS];\n    uint16_t codes[MAX_ELEMS];\n    int counts[17], prefixes[18];\n    int i, cur_len;\n    int max_bits = 0;\n    int nb = 0;\n    for (i = 0; i <= 16; i++)\n        counts[i] = 0;\n    for (i = 0; i < elems; i++) {\n        cur_len  = (nb ? *data & 0xF : *data >> 4) + 1;\n        counts[cur_len]++;\n        max_bits = FFMAX(max_bits, cur_len);\n        lens[i]  = cur_len;\n        data    += nb;\n        nb      ^= 1;\n    }\n    prefixes[1] = 0;\n    for (i = 1; i <= 16; i++)\n        prefixes[i + 1] = (prefixes[i] + counts[i]) << 1;\n    for (i = 0; i < elems; i++)\n        codes[i] = prefixes[lens[i]]++;\n    return ff_init_vlc_sparse(vlc, FFMIN(max_bits, 9), elems,\n                              lens, 1, 1, codes, 2, 2, NULL, 0, 0, 0);\n}']