Commit 0e6cef44 authored by Frédéric Boiteux's avatar Frédéric Boiteux Committed by Gautier Pelloux-Prayer

implement sender_info_get_ntp_timestamp() function.

defined but not yet implemented.
parent fcd9eccf
......@@ -88,7 +88,10 @@ typedef struct sender_info
uint32_t senders_octet_count;
} sender_info_t;
uint64_t sender_info_get_ntp_timestamp(const sender_info_t *si);
static ORTP_INLINE uint64_t sender_info_get_ntp_timestamp(const sender_info_t *si) {
return ((((uint64_t)ntohl(si->ntp_timestamp_msw)) << 32) +
((uint64_t) ntohl(si->ntp_timestamp_lsw)));
#define sender_info_get_rtp_timestamp(si) ((si)->rtp_timestamp)
#define sender_info_get_packet_count(si) \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment