int init_vlc(VLC *vlc, int nb_bits, int nb_codes,

             const void *bits, int bits_wrap, int bits_size,

             const void *codes, int codes_wrap, int codes_size)

{

    vlc->bits = nb_bits;

    vlc->table = NULL;

    vlc->table_allocated = 0;

    vlc->table_size = 0;

#ifdef DEBUG_VLC

    printf("build table nb_codes=%d\n", nb_codes);

#endif



    if (build_table(vlc, nb_bits, nb_codes,

                    bits, bits_wrap, bits_size,

                    codes, codes_wrap, codes_size,

                    0, 0) < 0) {

        av_free(vlc->table);

        return -1;

    }

    return 0;

}

int init_vlc(VLC *vlc, int nb_bits, int nb_codes,

             const void *bits, int bits_wrap, int bits_size,

             const void *codes, int codes_wrap, int codes_size)

{

    vlc->bits = nb_bits;

    vlc->table = NULL;

    vlc->table_allocated = 0;

    vlc->table_size = 0;

#ifdef DEBUG_VLC

    printf("build table nb_codes=%d\n", nb_codes);

#endif



    if (build_table(vlc, nb_bits, nb_codes,

                    bits, bits_wrap, bits_size,

                    codes, codes_wrap, codes_size,

                    0, 0) < 0) {

        av_free(vlc->table);

        return -1;

    }

    return 0;

}

             const void *codes, int codes_wrap, int codes_size)     vlc->table = NULL;     vlc->table_allocated = 0;     vlc->table_size = 0;                     0, 0) < 0) {
int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2,

             const void *VAR_3, int VAR_4, int VAR_5,

             const void *VAR_6, int VAR_7, int VAR_8)

{

    VAR_0->VAR_3 = VAR_1;

    VAR_0->table = NULL;

    VAR_0->table_allocated = 0;

    VAR_0->table_size = 0;

#ifdef DEBUG_VLC

    printf("build table VAR_2=%d\n", VAR_2);

#endif



    if (build_table(VAR_0, VAR_1, VAR_2,

                    VAR_3, VAR_4, VAR_5,

                    VAR_6, VAR_7, VAR_8,

                    0, 0) < 0) {

        av_free(VAR_0->table);

        return -1;

    }

    return 0;

}

int FUNC_0(VLC *VAR_0, int VAR_1, int VAR_2,
const void *VAR_3, int VAR_4, int VAR_5,
const void *VAR_6, int VAR_7, int VAR_8)
{ VAR_0->VAR_3 = VAR_1; VAR_0->table = NULL; VAR_0->table_allocated = 0; VAR_0->table_size = 0; #ifdef DEBUG_VLC
printf("build table VAR_2=%d\n", VAR_2); #endif
if (build_table(VAR_0, VAR_1, VAR_2,
VAR_3, VAR_4, VAR_5,
VAR_6, VAR_7, VAR_8,
0, 0) < 0) { av_free(VAR_0->table); return -1; } return 0; }