static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data,

                            AVStream *st, AVPacket *pkt, uint32_t *timestamp,

                            const uint8_t *buf, int len, uint16_t seq,

                            int flags)

{

    int ret;

    if (rtp_parse_mp4_au(data, buf))

        return -1;



    buf += data->au_headers_length_bytes + 2;

    len -= data->au_headers_length_bytes + 2;



    /* XXX: Fixme we only handle the case where rtp_parse_mp4_au define

                    one au_header */

    if ((ret = av_new_packet(pkt, data->au_headers[0].size)) < 0)

        return ret;

    memcpy(pkt->data, buf, data->au_headers[0].size);



    pkt->stream_index = st->index;

    return 0;

}

static int aac_parse_packet(AVFormatContext *ctx, PayloadContext *data,

                            AVStream *st, AVPacket *pkt, uint32_t *timestamp,

                            const uint8_t *buf, int len, uint16_t seq,

                            int flags)

{

    int ret;

    if (rtp_parse_mp4_au(data, buf))

        return -1;



    buf += data->au_headers_length_bytes + 2;

    len -= data->au_headers_length_bytes + 2;



    



    if ((ret = av_new_packet(pkt, data->au_headers[0].size)) < 0)

        return ret;

    memcpy(pkt->data, buf, data->au_headers[0].size);



    pkt->stream_index = st->index;

    return 0;

}

    if (rtp_parse_mp4_au(data, buf))
static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,

                            AVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,

                            const uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,

                            int VAR_8)

{

    int VAR_9;

    if (rtp_parse_mp4_au(VAR_1, VAR_5))

        return -1;



    VAR_5 += VAR_1->au_headers_length_bytes + 2;

    VAR_6 -= VAR_1->au_headers_length_bytes + 2;



    



    if ((VAR_9 = av_new_packet(VAR_3, VAR_1->au_headers[0].size)) < 0)

        return VAR_9;

    memcpy(VAR_3->VAR_1, VAR_5, VAR_1->au_headers[0].size);



    VAR_3->stream_index = VAR_2->index;

    return 0;

}

static int FUNC_0(AVFormatContext *VAR_0, PayloadContext *VAR_1,
AVStream *VAR_2, AVPacket *VAR_3, uint32_t *VAR_4,
const uint8_t *VAR_5, int VAR_6, uint16_t VAR_7,
int VAR_8)
{ int VAR_9; if (rtp_parse_mp4_au(VAR_1, VAR_5))
return -1; VAR_5 += VAR_1->au_headers_length_bytes + 2; VAR_6 -= VAR_1->au_headers_length_bytes + 2; if ((VAR_9 = av_new_packet(VAR_3, VAR_1->au_headers[0].size)) < 0)
return VAR_9; memcpy(VAR_3->VAR_1, VAR_5, VAR_1->au_headers[0].size); VAR_3->stream_index = VAR_2->index; return 0; }