Unverified 提交 f2f8a5fc authored 作者: Junlong Zou's avatar Junlong Zou 提交者: GitHub

fix rr report (#556)

fix packet lost value in rr
上级 a1ab1950
...@@ -465,10 +465,9 @@ namespace RTC ...@@ -465,10 +465,9 @@ namespace RTC
else else
{ {
// Recalculate packetsLost. // Recalculate packetsLost.
uint32_t newLostInterval = (worstRemoteFractionLost * expectedInterval) >> 8; uint32_t newLostInterval = (worstRemoteFractionLost * expectedInterval) >> 8;
uint32_t newReceivedInterval = expectedInterval - newLostInterval;
this->reportedPacketLost += (receivedInterval - newReceivedInterval); this->reportedPacketLost += newLostInterval;
report->SetTotalLost(this->reportedPacketLost); report->SetTotalLost(this->reportedPacketLost);
report->SetFractionLost(worstRemoteFractionLost); report->SetFractionLost(worstRemoteFractionLost);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论