CLOCK_FREQ is a 64-bits quantity as mtime_t
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 3 Sep 2008 17:38:48 +0000 (20:38 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 3 Sep 2008 17:44:55 +0000 (20:44 +0300)
include/vlc_config.h
modules/demux/rtpsession.c

index 4a51435..502af4c 100644 (file)
@@ -38,7 +38,7 @@
  * General configuration
  *****************************************************************************/
 
-#define CLOCK_FREQ 1000000
+#define CLOCK_FREQ (UINT64_C(1000000))
 
 
 /* When creating or destroying threads in blocking mode, delay to poll thread
index ccad284..dc025e3 100644 (file)
@@ -366,7 +366,7 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src)
     /* FIXME: handle timestamp wrap properly */
     /* TODO: sync multiple sources sanely... */
     const uint32_t timestamp = GetDWBE (block->p_buffer + 4);
-    block->i_pts = UINT64_C(1) * CLOCK_FREQ * timestamp / pt->frequency;
+    block->i_pts = CLOCK_FREQ * timestamp / pt->frequency;
 
     /* CSRC count */
     size_t skip = 12u + (block->p_buffer[0] & 0x0F) * 4;