Revert "CLOCK_FREQ is a 64-bits quantity as mtime_t"
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 3 Sep 2008 18:01:22 +0000 (21:01 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 3 Sep 2008 18:01:38 +0000 (21:01 +0300)
This reverts commit df65d65771fc440f134d10ea80c86e9f6f2051f6.

include/vlc_config.h
modules/demux/rtpsession.c

index 502af4c..4a51435 100644 (file)
@@ -38,7 +38,7 @@
  * General configuration
  *****************************************************************************/
 
-#define CLOCK_FREQ (UINT64_C(1000000))
+#define CLOCK_FREQ 1000000
 
 
 /* When creating or destroying threads in blocking mode, delay to poll thread
index dc025e3..ccad284 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 = CLOCK_FREQ * timestamp / pt->frequency;
+    block->i_pts = UINT64_C(1) * CLOCK_FREQ * timestamp / pt->frequency;
 
     /* CSRC count */
     size_t skip = 12u + (block->p_buffer[0] & 0x0F) * 4;