Move SET_NEXT_FIELD_32 to include/util.hh
This commit is contained in:
parent
fc117e6eba
commit
7992224325
|
@ -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)
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue