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