static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size)

{

    GetBitContext gb;



    init_get_bits(&gb, buf, size * 8);

    adts->objecttype = get_bits(&gb, 5) - 1;

    adts->sample_rate_index = get_bits(&gb, 4);

    adts->channel_conf = get_bits(&gb, 4);



    adts->write_adts = 1;



    return 0;

}

static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size)

{

    GetBitContext gb;



    init_get_bits(&gb, buf, size * 8);

    adts->objecttype = get_bits(&gb, 5) - 1;

    adts->sample_rate_index = get_bits(&gb, 4);

    adts->channel_conf = get_bits(&gb, 4);



    adts->write_adts = 1;



    return 0;

}

static int decode_extradata(ADTSContext *adts, uint8_t *buf, int size)
static int FUNC_0(ADTSContext *VAR_0, uint8_t *VAR_1, int VAR_2)

{

    GetBitContext gb;



    init_get_bits(&gb, VAR_1, VAR_2 * 8);

    VAR_0->objecttype = get_bits(&gb, 5) - 1;

    VAR_0->sample_rate_index = get_bits(&gb, 4);

    VAR_0->channel_conf = get_bits(&gb, 4);



    VAR_0->write_adts = 1;



    return 0;

}

static int FUNC_0(ADTSContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{ GetBitContext gb; init_get_bits(&gb, VAR_1, VAR_2 * 8); VAR_0->objecttype = get_bits(&gb, 5) - 1; VAR_0->sample_rate_index = get_bits(&gb, 4); VAR_0->channel_conf = get_bits(&gb, 4); VAR_0->write_adts = 1; return 0; }