Index: webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc b/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc |
index f6911984418ee7bdd9ff324b03feffb49c69332a..b1be50588e946f4f026aa3a1f72c17c0b3a3d690 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/transport_feedback_adapter.cc |
@@ -70,7 +70,7 @@ void TransportFeedbackAdapter::OnSentPacket(uint16_t sequence_number, |
send_time_history_.OnSentPacket(sequence_number, send_time_ms); |
} |
-void TransportFeedbackAdapter::OnTransportFeedback( |
+const std::vector<PacketInfo> TransportFeedbackAdapter::GetPacketFeedbackVector( |
const rtcp::TransportFeedback& feedback) { |
int64_t timestamp_us = feedback.GetBaseTimeUs(); |
// Add timestamp deltas to a local time base selected on first packet arrival. |
@@ -125,7 +125,13 @@ void TransportFeedbackAdapter::OnTransportFeedback( |
<< ". Send time history too small?"; |
} |
} |
+ return packet_feedback_vector; |
+} |
+void TransportFeedbackAdapter::OnTransportFeedback( |
+ const rtcp::TransportFeedback& feedback) { |
+ const std::vector<PacketInfo> packet_feedback_vector = |
+ GetPacketFeedbackVector(feedback); |
RTC_DCHECK(bitrate_estimator_.get() != nullptr); |
bitrate_estimator_->IncomingPacketFeedbackVector(packet_feedback_vector); |
} |