| Index: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
|
| index 150c88b4266c910cd6b30b6a3902cb5a2265a740..7ac86ee0f29499eb0cbe61a8772801b010b21c07 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
|
| @@ -265,8 +265,8 @@ RtcpStatistics StreamStatisticianImpl::CalculateRtcpStatistics() {
|
| // We need a counter for cumulative loss too.
|
| // TODO(danilchap): Ensure cumulative loss is below maximum value of 2^24.
|
| cumulative_loss_ += missing;
|
| - stats.cumulative_lost = cumulative_loss_;
|
| - stats.extended_max_sequence_number =
|
| + stats.packets_lost = cumulative_loss_;
|
| + stats.extended_highest_sequence_number =
|
| (received_seq_wraps_ << 16) + received_seq_max_;
|
| // Note: internal jitter value is in Q4 and needs to be scaled by 1/16.
|
| stats.jitter = jitter_q4_ >> 4;
|
| @@ -514,12 +514,12 @@ std::vector<rtcp::ReportBlock> ReceiveStatistics::RtcpReportBlocks(
|
| rtcp::ReportBlock& block = result.back();
|
| block.SetMediaSsrc(statistician.first);
|
| block.SetFractionLost(stats.fraction_lost);
|
| - if (!block.SetCumulativeLost(stats.cumulative_lost)) {
|
| + if (!block.SetCumulativeLost(stats.packets_lost)) {
|
| LOG(LS_WARNING) << "Cumulative lost is oversized.";
|
| result.pop_back();
|
| continue;
|
| }
|
| - block.SetExtHighestSeqNum(stats.extended_max_sequence_number);
|
| + block.SetExtHighestSeqNum(stats.extended_highest_sequence_number);
|
| block.SetJitter(stats.jitter);
|
| }
|
| return result;
|
|
|