Commit 47f4d3c6 authored by Marian Ďurkovič's avatar Marian Ďurkovič

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

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