修复pt覆盖失败的bug

This commit is contained in:
xiongziliang 2021-04-11 01:14:41 +08:00
parent e495dfca64
commit 33da2e28ec

View File

@ -244,7 +244,7 @@ namespace RTC
}
std::memcpy(EncryptBuffer, *data, *len);
EncryptBuffer[1] |= (pt & 0x7F);
EncryptBuffer[1] = (pt & 0x7F) | (EncryptBuffer[1] & 0x80);
srtp_err_status_t err =
srtp_protect(this->session, static_cast<void*>(EncryptBuffer), reinterpret_cast<int*>(len));