mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-12 00:50:55 +08:00
修复webrtc srtp相关功能在大端64位系统崩溃的问题
This commit is contained in:
@@ -231,7 +231,7 @@ namespace RTC
|
||||
}
|
||||
}
|
||||
|
||||
bool SrtpSession::EncryptRtp(uint8_t* data, size_t* len)
|
||||
bool SrtpSession::EncryptRtp(uint8_t* data, int* len)
|
||||
{
|
||||
MS_TRACE();
|
||||
srtp_err_status_t err =
|
||||
@@ -246,7 +246,7 @@ namespace RTC
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SrtpSession::DecryptSrtp(uint8_t* data, size_t* len)
|
||||
bool SrtpSession::DecryptSrtp(uint8_t* data, int* len)
|
||||
{
|
||||
MS_TRACE();
|
||||
|
||||
@@ -262,7 +262,7 @@ namespace RTC
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SrtpSession::EncryptRtcp(uint8_t* data, size_t* len)
|
||||
bool SrtpSession::EncryptRtcp(uint8_t* data, int* len)
|
||||
{
|
||||
MS_TRACE();
|
||||
srtp_err_status_t err = srtp_protect_rtcp(
|
||||
@@ -277,7 +277,7 @@ namespace RTC
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SrtpSession::DecryptSrtcp(uint8_t* data, size_t* len)
|
||||
bool SrtpSession::DecryptSrtcp(uint8_t* data, int* len)
|
||||
{
|
||||
MS_TRACE();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user