static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len)

{

    uint16_t seq   = AV_RB16(buf + 2);

    RTPPacket **cur = &s->queue, *packet;



    /* Find the correct place in the queue to insert the packet */

    while (*cur) {

        int16_t diff = seq - (*cur)->seq;

        if (diff < 0)

            break;

        cur = &(*cur)->next;

    }



    packet = av_mallocz(sizeof(*packet));

    if (!packet)

        return;

    packet->recvtime = av_gettime_relative();

    packet->seq      = seq;

    packet->len      = len;

    packet->buf      = buf;

    packet->next     = *cur;

    *cur = packet;

    s->queue_len++;

}

static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len)

{

    uint16_t seq   = AV_RB16(buf + 2);

    RTPPacket **cur = &s->queue, *packet;



    

    while (*cur) {

        int16_t diff = seq - (*cur)->seq;

        if (diff < 0)

            break;

        cur = &(*cur)->next;

    }



    packet = av_mallocz(sizeof(*packet));

    if (!packet)

        return;

    packet->recvtime = av_gettime_relative();

    packet->seq      = seq;

    packet->len      = len;

    packet->buf      = buf;

    packet->next     = *cur;

    *cur = packet;

    s->queue_len++;

}

static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len)
static void FUNC_0(RTPDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2)

{

    uint16_t seq   = AV_RB16(VAR_1 + 2);

    RTPPacket **cur = &VAR_0->queue, *packet;



    

    while (*cur) {

        int16_t diff = seq - (*cur)->seq;

        if (diff < 0)

            break;

        cur = &(*cur)->next;

    }



    packet = av_mallocz(sizeof(*packet));

    if (!packet)

        return;

    packet->recvtime = av_gettime_relative();

    packet->seq      = seq;

    packet->VAR_2      = VAR_2;

    packet->VAR_1      = VAR_1;

    packet->next     = *cur;

    *cur = packet;

    VAR_0->queue_len++;

}

static void FUNC_0(RTPDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{ uint16_t seq   = AV_RB16(VAR_1 + 2); RTPPacket **cur = &VAR_0->queue, *packet; while (*cur) { int16_t diff = seq - (*cur)->seq; if (diff < 0)
break; cur = &(*cur)->next; } packet = av_mallocz(sizeof(*packet)); if (!packet)
return; packet->recvtime = av_gettime_relative(); packet->seq      = seq; packet->VAR_2      = VAR_2; packet->VAR_1      = VAR_1; packet->next     = *cur; *cur = packet; VAR_0->queue_len++; }