Commit 0e202b6d authored by Marian Ďurkovič's avatar Marian Ďurkovič

RTP: Make sure we wait >= 25 msec for reordered packets

(cherry picked from commit 47f4d3c6)
parent a04df46c
...@@ -498,6 +498,9 @@ bool rtp_dequeue (demux_t *demux, const rtp_session_t *session, ...@@ -498,6 +498,9 @@ bool rtp_dequeue (demux_t *demux, const rtp_session_t *session,
deadline += UINT64_C(3) * CLOCK_FREQ * src->jitter deadline += UINT64_C(3) * CLOCK_FREQ * src->jitter
/ pt->frequency; / pt->frequency;
/* Make sure we wait at least for 25 msec */
deadline = __MAX(deadline, src->ref_ts + CLOCK_FREQ / 40);
if (now >= deadline) if (now >= deadline)
{ {
rtp_decode (demux, session, src); rtp_decode (demux, session, src);
......
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