[vlc-devel] commit: RTP: Make sure we wait >= 25 msec for reordered packets ( Marian Ďurkovič )

git version control git at videolan.org
Fri Sep 11 07:58:11 CEST 2009


vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Fri Sep 11 07:48:17 2009 +0200| [47f4d3c69f1fd6c9f56198e94f60bf05558f5386] | committer: Marian Ďurkovič 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=47f4d3c69f1fd6c9f56198e94f60bf05558f5386
---

 modules/access/rtp/session.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index 73c5a1c..a6e0901 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -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);




More information about the vlc-devel mailing list