Commit 3e254a1a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: fix simultaneous sequence number wrap and re-order

(cherry picked from commit 84fe2cd5)
parent 70692de0
...@@ -319,7 +319,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block) ...@@ -319,7 +319,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
/* Check sequence number */ /* Check sequence number */
/* NOTE: the sequence number is per-source, /* NOTE: the sequence number is per-source,
* but is independent from the payload type. */ * 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) if ((delta_seq > 0) ? (delta_seq > p_sys->max_dropout)
: (-delta_seq > p_sys->max_misorder)) : (-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