mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 18:50:20 +08:00
Update RtpProcess.cpp
This commit is contained in:
parent
532932fd2d
commit
0a678661e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user