Commit 0a678661 by dingcan

Update RtpProcess.cpp

parent 532932fd
...@@ -291,10 +291,10 @@ int RtpProcess::getLossRate(MediaSource &sender, TrackType type){ ...@@ -291,10 +291,10 @@ int RtpProcess::getLossRate(MediaSource &sender, TrackType type){
return -1; return -1;
} }
auto expected = help->getExpectedPacketsInterval(); auto expected = help->getExpectedPacketsInterval();
if (!expected) { if (!expected) {
return 0; return 0;
} }
return help->geLostInterval() * 100 / expected; return help->geLostInterval() * 100 / expected;
} }
}//namespace mediakit }//namespace mediakit
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论