提交 1cb97030 authored 作者: José Luis Millán's avatar José Luis Millán

rtcp: properly create lsr field out of Sender Report

上级 8d01e160
...@@ -91,8 +91,8 @@ namespace RTC ...@@ -91,8 +91,8 @@ namespace RTC
void RtpStreamRecv::ReceiveRtcpSenderReport(RTC::RTCP::SenderReport* report) void RtpStreamRecv::ReceiveRtcpSenderReport(RTC::RTCP::SenderReport* report)
{ {
this->last_sr_received = DepLibUV::GetTime(); this->last_sr_received = DepLibUV::GetTime();
this->last_sr_timestamp = htonl(report->GetNtpSec()) << 16; this->last_sr_timestamp = report->GetNtpSec() << 16;
this->last_sr_timestamp += htonl(report->GetNtpFrac()) >> 16; this->last_sr_timestamp += report->GetNtpFrac() >> 16;
} }
void RtpStreamRecv::CalculateJitter(uint32_t rtpTimestamp) void RtpStreamRecv::CalculateJitter(uint32_t rtpTimestamp)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论