Commit 84fe2cd5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: fix simultaneous sequence number wrap and re-order

parent ae780fe9
......@@ -319,7 +319,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
/* Check sequence number */
/* NOTE: the sequence number is per-source,
* but is independent from the payload type. */
int delta_seq = seq - src->max_seq;
int16_t delta_seq = seq - src->max_seq;
if ((delta_seq > 0) ? (delta_seq > p_sys->max_dropout)
: (-delta_seq > p_sys->max_misorder))
{
......
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