[vlc-devel] commit: RTP: fix overflow in jitter computation ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Dec 3 20:09:55 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Dec  3 19:38:01 2008 +0200| [5cd55e7221b83555ec603edfaaecd6594b720172] | committer: Rémi Denis-Courmont 

RTP: fix overflow in jitter computation

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

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

diff --git a/modules/access/rtp/session.c b/modules/access/rtp/session.c
index a4e0d22..497b02a 100644
--- a/modules/access/rtp/session.c
+++ b/modules/access/rtp/session.c
@@ -306,7 +306,7 @@ rtp_queue (demux_t *demux, rtp_session_t *session, block_t *block)
              * That is computed from the RTP timestamps and the system clock.
              * It is independent of RTP sequence. */
             uint32_t freq = pt->frequency;
-            uint32_t ts = rtp_timestamp (block);
+            int64_t ts = rtp_timestamp (block);
             int64_t d = ((now - src->last_rx) * freq) / CLOCK_FREQ;
             d        -=    ts - src->last_ts;
             if (d < 0) d = -d;




More information about the vlc-devel mailing list