mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 13:48:09 +00:00
fix crash in received_rtcp analysis
This commit is contained in:
parent
2d40dd7139
commit
5616a97ef2
1 changed files with 2 additions and 2 deletions
|
|
@ -4185,8 +4185,8 @@ float linphone_call_stats_get_receiver_loss_rate(const LinphoneCallStats *stats)
|
|||
else if (rtcp_is_SR(stats->received_rtcp))
|
||||
rrb = rtcp_SR_get_report_block(stats->received_rtcp, 0);
|
||||
if (rrb) break;
|
||||
}while (rtcp_next_packet(stats->sent_rtcp));
|
||||
rtcp_rewind(stats->sent_rtcp);
|
||||
}while (rtcp_next_packet(stats->received_rtcp));
|
||||
rtcp_rewind(stats->received_rtcp);
|
||||
if (!rrb)
|
||||
return 0.0;
|
||||
return 100.0f * report_block_get_fraction_lost(rrb) / 256.0f;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue