mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-31 03:19:29 +00:00
Fixed setting the payload type
This commit is contained in:
@ -69,7 +69,7 @@ public:
|
||||
_seqNumber = htons(newSeqNo);
|
||||
}
|
||||
inline void setPayloadType(uint8_t newPayloadType) {
|
||||
_payloadType = 0b01111111u & newPayloadType;
|
||||
_payloadType = _payloadType | (0b01111111u & newPayloadType);
|
||||
}
|
||||
inline void setSsrc(uint32_t ssrc) {
|
||||
_ssrc = htonl(ssrc);
|
||||
@ -187,7 +187,7 @@ public:
|
||||
}
|
||||
|
||||
inline void log() const {
|
||||
PLOG_VERBOSE << "RTCP header: "
|
||||
PLOG_INFO << "RTCP header: "
|
||||
<< "version=" << unsigned(version()) << ", padding=" << padding()
|
||||
<< ", reportCount=" << unsigned(reportCount())
|
||||
<< ", payloadType=" << unsigned(payloadType()) << ", length=" << length();
|
||||
|
Reference in New Issue
Block a user