static void build_vlc(VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, 

                      int nb_codes)

{

    uint8_t huff_size[256];

    uint16_t huff_code[256];



    memset(huff_size, 0, sizeof(huff_size));

    build_huffman_codes(huff_size, huff_code, bits_table, val_table);

    

    init_vlc(vlc, 9, nb_codes, huff_size, 1, 1, huff_code, 2, 2);

}

static void build_vlc(VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, 

                      int nb_codes)

{

    uint8_t huff_size[256];

    uint16_t huff_code[256];



    memset(huff_size, 0, sizeof(huff_size));

    build_huffman_codes(huff_size, huff_code, bits_table, val_table);

    

    init_vlc(vlc, 9, nb_codes, huff_size, 1, 1, huff_code, 2, 2);

}

static void FUNC_0(VLC *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, 

                      int VAR_3)

{

    uint8_t huff_size[256];

    uint16_t huff_code[256];



    memset(huff_size, 0, sizeof(huff_size));

    build_huffman_codes(huff_size, huff_code, VAR_1, VAR_2);

    

    init_vlc(VAR_0, 9, VAR_3, huff_size, 1, 1, huff_code, 2, 2);

}

static void FUNC_0(VLC *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2,
int VAR_3)
{ uint8_t huff_size[256]; uint16_t huff_code[256]; memset(huff_size, 0, sizeof(huff_size)); build_huffman_codes(huff_size, huff_code, VAR_1, VAR_2); init_vlc(VAR_0, 9, VAR_3, huff_size, 1, 1, huff_code, 2, 2); }