static int alloc_table(VLC *vlc, int size)

{

    int index;

    index = vlc->table_size;

    vlc->table_size += size;

    if (vlc->table_size > vlc->table_allocated) {

        vlc->table_allocated += (1 << vlc->bits);

        vlc->table = av_realloc(vlc->table,

                                sizeof(VLC_TYPE) * 2 * vlc->table_allocated);

        if (!vlc->table)

            return -1;

    }

    return index;

}

static int alloc_table(VLC *vlc, int size)

{

    int index;

    index = vlc->table_size;

    vlc->table_size += size;

    if (vlc->table_size > vlc->table_allocated) {

        vlc->table_allocated += (1 << vlc->bits);

        vlc->table = av_realloc(vlc->table,

                                sizeof(VLC_TYPE) * 2 * vlc->table_allocated);

        if (!vlc->table)

            return -1;

    }

    return index;

}

static int alloc_table(VLC *vlc, int size)         vlc->table = av_realloc(vlc->table,                                 sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
static int FUNC_0(VLC *VAR_0, int VAR_1)

{

    int VAR_2;

    VAR_2 = VAR_0->table_size;

    VAR_0->table_size += VAR_1;

    if (VAR_0->table_size > VAR_0->table_allocated) {

        VAR_0->table_allocated += (1 << VAR_0->bits);

        VAR_0->table = av_realloc(VAR_0->table,

                                sizeof(VLC_TYPE) * 2 * VAR_0->table_allocated);

        if (!VAR_0->table)

            return -1;

    }

    return VAR_2;

}

static int FUNC_0(VLC *VAR_0, int VAR_1)
{ int VAR_2; VAR_2 = VAR_0->table_size; VAR_0->table_size += VAR_1; if (VAR_0->table_size > VAR_0->table_allocated) { VAR_0->table_allocated += (1 << VAR_0->bits); VAR_0->table = av_realloc(VAR_0->table,
sizeof(VLC_TYPE) * 2 * VAR_0->table_allocated); if (!VAR_0->table)
return -1; } return VAR_2; }