mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-31 03:19:29 +00:00
Fixed the distribution of RTCP packets regarding RTCP and RTCPFB packets
This commit is contained in:
@ -171,6 +171,9 @@ public:
|
||||
inline uint8_t reportCount() const { return _first & 0x0F; }
|
||||
inline uint8_t payloadType() const { return _payloadType; }
|
||||
inline uint16_t length() const { return ntohs(_length); }
|
||||
inline size_t lengthInBytes() const {
|
||||
return (1+length())*4;
|
||||
}
|
||||
|
||||
inline void setPayloadType(uint8_t type) { _payloadType = type; }
|
||||
inline void setReportCount(uint8_t count) { _first = (_first & 0b11100000u) | (count & 0b00011111u); }
|
||||
|
Reference in New Issue
Block a user