* General configuration
*****************************************************************************/
-#define CLOCK_FREQ 1000000
+#define CLOCK_FREQ (UINT64_C(1000000))
/* When creating or destroying threads in blocking mode, delay to poll thread
/* 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;