Fixed setting the payload type

This commit is contained in:
Staz M
2020-11-07 19:52:38 -05:00
parent be7a6324dd
commit be96e8b1fa

View File

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