| Index: webrtc/video/send_statistics_proxy.cc
|
| diff --git a/webrtc/video/send_statistics_proxy.cc b/webrtc/video/send_statistics_proxy.cc
|
| index 1f0ee2cb7a8e0806a3cf3b2b53168ff9a7520687..b29884e585426ffa2bcb03bd050986b71ceb3895 100644
|
| --- a/webrtc/video/send_statistics_proxy.cc
|
| +++ b/webrtc/video/send_statistics_proxy.cc
|
| @@ -432,6 +432,7 @@ VideoSendStream::StreamStats* SendStatisticsProxy::GetStatsEntry(
|
| // Insert new entry and return ptr.
|
| VideoSendStream::StreamStats* entry = &stats_.substreams[ssrc];
|
| entry->is_rtx = is_rtx;
|
| + entry->is_flexfec = is_flexfec;
|
|
|
| return entry;
|
| }
|
| @@ -617,6 +618,12 @@ void SendStatisticsProxy::DataCountersUpdated(
|
| RTC_DCHECK(stats) << "DataCountersUpdated reported for unknown ssrc: "
|
| << ssrc;
|
|
|
| + if (stats->is_flexfec) {
|
| + // The same counters are reported for both the media ssrc and flexfec ssrc.
|
| + // Bitrate stats are summed for all SSRCs. Use fec stats from media update.
|
| + return;
|
| + }
|
| +
|
| stats->rtp_stats = counters;
|
| if (uma_container_->first_rtp_stats_time_ms_ == -1)
|
| uma_container_->first_rtp_stats_time_ms_ = clock_->TimeInMilliseconds();
|
|
|