diff --git a/call/rtp_transport_controller_send.cc b/call/rtp_transport_controller_send.cc index a414c3b425..ab95907ac8 100644 --- a/call/rtp_transport_controller_send.cc +++ b/call/rtp_transport_controller_send.cc @@ -400,7 +400,7 @@ void RtpTransportControllerSend::OnReceivedRtcpReceiverReport( report.receive_time = Timestamp::ms(now_ms); report.round_trip_time = TimeDelta::ms(rtt_ms); report.smoothed = false; - if (controller_) + if (controller_ && !report.round_trip_time.IsZero()) PostUpdates(controller_->OnRoundTripTimeUpdate(report)); }); } diff --git a/modules/congestion_controller/goog_cc/goog_cc_network_control.cc b/modules/congestion_controller/goog_cc/goog_cc_network_control.cc index 283ca983e9..e39d43f615 100644 --- a/modules/congestion_controller/goog_cc/goog_cc_network_control.cc +++ b/modules/congestion_controller/goog_cc/goog_cc_network_control.cc @@ -229,6 +229,7 @@ NetworkControlUpdate GoogCcNetworkController::OnRoundTripTimeUpdate( RoundTripTimeUpdate msg) { if (packet_feedback_only_ || msg.smoothed) return NetworkControlUpdate(); + RTC_DCHECK(!msg.round_trip_time.IsZero()); if (delay_based_bwe_) delay_based_bwe_->OnRttUpdate(msg.round_trip_time); bandwidth_estimation_->UpdateRtt(msg.round_trip_time, msg.receive_time);