Update RtpProcess.cpp

This commit is contained in:
dingcan 2022-07-27 10:02:15 +08:00
parent 532932fd2d
commit 0a678661e3

View File

@ -291,10 +291,10 @@ int RtpProcess::getLossRate(MediaSource &sender, TrackType type){
return -1;
}
auto expected = help->getExpectedPacketsInterval();
if (!expected) {
return 0;
}
return help->geLostInterval() * 100 / expected;
if (!expected) {
return 0;
}
return help->geLostInterval() * 100 / expected;
}
}//namespace mediakit