mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-18 17:24:14 +00:00
FS-9496
This commit is contained in:
1 parent
5c43a17a04
commit
f3b22f6142
1 file changed
+5
-1
+5
-1
@@ -1693,7 +1693,11 @@ static void check_jitter(switch_rtp_t *rtp_session)
|
||||
rtp_session->stats.inbound.jitter_n++;
|
||||
rtp_session->stats.inbound.jitter_add += diff_time;
|
||||
|
||||
cur_diff = (int64_t)(diff_time - rtp_session->stats.inbound.mean_interval);
|
||||
if (rtp_session->stats.inbound.mean_interval) {
|
||||
cur_diff = (int64_t)(diff_time - rtp_session->stats.inbound.mean_interval);
|
||||
} else {
|
||||
cur_diff = 0;
|
||||
}
|
||||
|
||||
rtp_session->stats.inbound.jitter_addsq += (cur_diff * cur_diff);
|
||||
rtp_session->stats.inbound.last_proc_time = current_time;
|
||||
|
||||
Reference in new issue
Block a user