diff --git a/modules/congestion_controller/rtp/send_time_history.cc b/modules/congestion_controller/rtp/send_time_history.cc index b0619a2595..d4a088ea13 100644 --- a/modules/congestion_controller/rtp/send_time_history.cc +++ b/modules/congestion_controller/rtp/send_time_history.cc @@ -38,7 +38,9 @@ void SendTimeHistory::AddAndRemoveOld(const PacketFeedback& packet) { // Add new. int64_t unwrapped_seq_num = seq_num_unwrapper_.Unwrap(packet.sequence_number); - history_.insert(std::make_pair(unwrapped_seq_num, packet)); + PacketFeedback packet_copy = packet; + packet_copy.long_sequence_number = unwrapped_seq_num; + history_.insert(std::make_pair(unwrapped_seq_num, packet_copy)); } bool SendTimeHistory::OnSentPacket(uint16_t sequence_number, diff --git a/modules/rtp_rtcp/include/rtp_rtcp_defines.h b/modules/rtp_rtcp/include/rtp_rtcp_defines.h index 28ee47b5b5..6df3def472 100644 --- a/modules/rtp_rtcp/include/rtp_rtcp_defines.h +++ b/modules/rtp_rtcp/include/rtp_rtcp_defines.h @@ -370,6 +370,9 @@ struct PacketFeedback { // Packet identifier, incremented with 1 for every packet generated by the // sender. uint16_t sequence_number; + // Session unique packet identifier, incremented with 1 for every packet + // generated by the sender. + int64_t long_sequence_number; // Size of the packet excluding RTP headers. size_t payload_size; // The network route ids that this packet is associated with.