Index: webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc |
diff --git a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc |
index dc1490589078acac93ba3575af814ccd8331f1fe..416afbe1f7d264cec2c859bc1460d60ec90d92c8 100644 |
--- a/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc |
+++ b/webrtc/modules/bitrate_controller/send_side_bandwidth_estimation.cc |
@@ -209,8 +209,10 @@ void SendSideBandwidthEstimation::UpdateReceiverBlock(uint8_t fraction_loss, |
if (first_report_time_ms_ == -1) |
first_report_time_ms_ = now_ms; |
- // Update RTT. |
- last_round_trip_time_ms_ = rtt; |
+ // Update RTT if we were able to compute an RTT based on this RTCP. |
+ // FlexFEC doesn't send RTCP SR, which means we won't be able to compute RTT. |
+ if (rtt > 0) |
+ last_round_trip_time_ms_ = rtt; |
// Check sequence number diff and weight loss report |
if (number_of_packets > 0) { |