修复webrtc srtp相关功能在大端64位系统崩溃的问题

This commit is contained in:
ziyue
2021-08-13 16:07:27 +08:00
parent 8fd9853bc9
commit 1d161bcdc2
4 changed files with 19 additions and 19 deletions

View File

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