mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-27 08:20:52 +08:00
修复pt覆盖失败的bug
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user