diff --git a/src/rtp/pbuf.c b/src/rtp/pbuf.c index 98e2ec598..6329b83f8 100644 --- a/src/rtp/pbuf.c +++ b/src/rtp/pbuf.c @@ -210,7 +210,7 @@ static void add_coded_unit(struct pbuf_node *node, rtp_packet * pkt) free(pkt); free(tmp); } else { - while (curr != NULL && ((uint16_t)(tmp->seqno - curr->seqno) < 0)){ + while (curr != NULL && ((int16_t)(tmp->seqno - curr->seqno) < 0)){ prv = curr; curr = curr->nxt; }