From 0a678661e37534aff2d4cb441b42aaf861d03ffa Mon Sep 17 00:00:00 2001 From: dingcan Date: Wed, 27 Jul 2022 10:02:15 +0800 Subject: [PATCH] Update RtpProcess.cpp --- src/Rtp/RtpProcess.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Rtp/RtpProcess.cpp b/src/Rtp/RtpProcess.cpp index b8c497a6..66ba1cc1 100644 --- a/src/Rtp/RtpProcess.cpp +++ b/src/Rtp/RtpProcess.cpp @@ -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