static int g726_decode_frame(AVCodecContext *avctx,

                             void *data, int *data_size,

                             AVPacket *avpkt)

{

    const uint8_t *buf = avpkt->data;

    int buf_size = avpkt->size;

    G726Context *c = avctx->priv_data;

    int16_t *samples = data;

    GetBitContext gb;



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



    while (get_bits_count(&gb) + c->code_size <= buf_size*8)

        *samples++ = g726_decode(c, get_bits(&gb, c->code_size));



    if(buf_size*8 != get_bits_count(&gb))

        av_log(avctx, AV_LOG_ERROR, "Frame invalidly split, missing parser?\n");



    *data_size = (uint8_t*)samples - (uint8_t*)data;

    return buf_size;

}

static int g726_decode_frame(AVCodecContext *avctx,

                             void *data, int *data_size,

                             AVPacket *avpkt)

{

    const uint8_t *buf = avpkt->data;

    int buf_size = avpkt->size;

    G726Context *c = avctx->priv_data;

    int16_t *samples = data;

    GetBitContext gb;



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



    while (get_bits_count(&gb) + c->code_size <= buf_size*8)

        *samples++ = g726_decode(c, get_bits(&gb, c->code_size));



    if(buf_size*8 != get_bits_count(&gb))

        av_log(avctx, AV_LOG_ERROR, "Frame invalidly split, missing parser?\n");



    *data_size = (uint8_t*)samples - (uint8_t*)data;

    return buf_size;

}

static int FUNC_0(AVCodecContext *VAR_0,

                             void *VAR_1, int *VAR_2,

                             AVPacket *VAR_3)

{

    const uint8_t *VAR_4 = VAR_3->VAR_1;

    int VAR_5 = VAR_3->size;

    G726Context *c = VAR_0->priv_data;

    int16_t *samples = VAR_1;

    GetBitContext gb;



    init_get_bits(&gb, VAR_4, VAR_5 * 8);



    while (get_bits_count(&gb) + c->code_size <= VAR_5*8)

        *samples++ = g726_decode(c, get_bits(&gb, c->code_size));



    if(VAR_5*8 != get_bits_count(&gb))

        av_log(VAR_0, AV_LOG_ERROR, "Frame invalidly split, missing parser?\n");



    *VAR_2 = (uint8_t*)samples - (uint8_t*)VAR_1;

    return VAR_5;

}

static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{ const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; G726Context *c = VAR_0->priv_data; int16_t *samples = VAR_1; GetBitContext gb; init_get_bits(&gb, VAR_4, VAR_5 * 8); while (get_bits_count(&gb) + c->code_size <= VAR_5*8)
*samples++ = g726_decode(c, get_bits(&gb, c->code_size)); if(VAR_5*8 != get_bits_count(&gb))
av_log(VAR_0, AV_LOG_ERROR, "Frame invalidly split, missing parser?\n"); *VAR_2 = (uint8_t*)samples - (uint8_t*)VAR_1; return VAR_5; }