Commit 7058cb6f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: fix re-ordering across sequence number wrap

Pointed-out-by: default avatarMarian Ďurkovič <md@bts.sk>
parent f612fe7e
......@@ -348,7 +348,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
block_t **pp = &src->blocks;
for (block_t *prev = *pp; prev != NULL; prev = *pp)
{
int delta_seq = seq - rtp_seq (prev);
int16_t delta_seq = seq - rtp_seq (prev);
if (delta_seq < 0)
break;
if (delta_seq == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment