修复rtp two byte ext解析相关bug: #1631

This commit is contained in:
xiongziliang 2022-05-13 20:01:57 +08:00
parent 301cbf0a83
commit 7e58d91a57

View File

@ -189,7 +189,7 @@ map<uint8_t/*id*/, RtpExt/*data*/> RtpExt::getExtValue(const RtpHeader *header)
appendExt<RtpExtOneByte>(ret, ptr, end);
return ret;
}
if ((reserved & 0xFFF0) >> 4 == kTwoByteHeader) {
if (reserved & 0xFFF0 == kTwoByteHeader) {
appendExt<RtpExtTwoByte>(ret, ptr, end);
return ret;
}