]> git.sesse.net Git - vlc/commitdiff
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 502af4c99694cb65257d24be505d9da48e07de03..4a514355f238751cb3f93ae261374354044faa8e 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 dc025e34e466b83cbd96264d570fe2b3af2d05ad..ccad2841a4a1cf045daea351b631f628a2cb36cb 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;