From 79922243250e6fc0f0a2f36a1f13ac56c9243bbc Mon Sep 17 00:00:00 2001 From: Aaro Altonen Date: Wed, 26 Aug 2020 12:52:16 +0300 Subject: [PATCH] Move SET_NEXT_FIELD_32 to include/util.hh --- include/util.hh | 2 ++ src/rtcp/receiver.cc | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util.hh b/include/util.hh index e70f802..93dcac5 100644 --- a/include/util.hh +++ b/include/util.hh @@ -234,6 +234,8 @@ extern thread_local rtp_error_t rtp_errno; #define TIME_DIFF(s, e, u) ((ssize_t)std::chrono::duration_cast(e - s).count()) +#define SET_NEXT_FIELD_32(a, p, v) do { *(uint32_t *)&(a)[p] = (v); p += 4; } while (0) + static inline void hex_dump(uint8_t *buf, size_t len) { if (!buf) diff --git a/src/rtcp/receiver.cc b/src/rtcp/receiver.cc index 4b9543e..4c5cf46 100644 --- a/src/rtcp/receiver.cc +++ b/src/rtcp/receiver.cc @@ -4,8 +4,6 @@ #include "rtcp.hh" -#define SET_NEXT_FIELD_32(a, p, v) do { *(uint32_t *)&(a)[p] = (v); ptr += 4; } while (0) - uvg_rtp::frame::rtcp_receiver_report *uvg_rtp::rtcp::get_receiver_packet(uint32_t ssrc) { if (participants_.find(ssrc) == participants_.end())