Move SET_NEXT_FIELD_32 to include/util.hh

This commit is contained in:
Aaro Altonen 2020-08-26 12:52:16 +03:00
parent fc117e6eba
commit 7992224325
2 changed files with 2 additions and 2 deletions

View File

@ -234,6 +234,8 @@ extern thread_local rtp_error_t rtp_errno;
#define TIME_DIFF(s, e, u) ((ssize_t)std::chrono::duration_cast<std::chrono::u>(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)

View File

@ -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())