Do not update OnReceivedRtcpReceiverReport if report block list is empty (and rtt zero).

For example, zero rtt may be reported to:
BitrateControllerImpl::OnReceivedRtcpReceiverReport:
- SendSideBandwidthEstimation::UpdateReceiverBlock
- SendSideBandwidthEstimation::UpdateUmaStats
BitrateAllocator::OnNetworkChanged:
- ProtectionBitrateCalculator::SetTargetRates

Re-add check that was removed in https://codereview.webrtc.org/2422063002.

BUG=webrtc:6692

Review-Url: https://codereview.webrtc.org/2552883010
Cr-Commit-Position: refs/heads/master@{#15486}
This commit is contained in:
asapersson
2016-12-08 08:13:01 -08:00
committed by Commit bot
parent c8474178d6
commit 8d193a72bc

View File

@ -38,6 +38,9 @@ class BitrateControllerImpl::RtcpBandwidthObserverImpl
void OnReceivedRtcpReceiverReport(const ReportBlockList& report_blocks,
int64_t rtt,
int64_t now_ms) override {
if (report_blocks.empty())
return;
int fraction_lost_aggregate = 0;
int total_number_of_packets = 0;