diff --git a/modules/rtp_rtcp/BUILD.gn b/modules/rtp_rtcp/BUILD.gn index 950e832616..00431dc097 100644 --- a/modules/rtp_rtcp/BUILD.gn +++ b/modules/rtp_rtcp/BUILD.gn @@ -378,6 +378,7 @@ rtc_library("rtcp_transceiver") { "../../api/video:video_bitrate_allocation", "../../rtc_base:checks", "../../rtc_base:rtc_base_approved", + "../../rtc_base/containers:flat_map", "../../rtc_base/task_utils:repeating_task", "../../rtc_base/task_utils:to_queued_task", "../../system_wrappers", diff --git a/modules/rtp_rtcp/source/rtcp_transceiver_impl.h b/modules/rtp_rtcp/source/rtcp_transceiver_impl.h index 91dc496faf..b03db7d786 100644 --- a/modules/rtp_rtcp/source/rtcp_transceiver_impl.h +++ b/modules/rtp_rtcp/source/rtcp_transceiver_impl.h @@ -25,6 +25,7 @@ #include "modules/rtp_rtcp/source/rtcp_packet/report_block.h" #include "modules/rtp_rtcp/source/rtcp_packet/target_bitrate.h" #include "modules/rtp_rtcp/source/rtcp_transceiver_config.h" +#include "rtc_base/containers/flat_map.h" #include "rtc_base/task_utils/repeating_task.h" #include "system_wrappers/include/ntp_time.h" @@ -118,7 +119,7 @@ class RtcpTransceiverImpl { absl::optional remb_; // TODO(danilchap): Remove entries from remote_senders_ that are no longer // needed. - std::map remote_senders_; + flat_map remote_senders_; RepeatingTaskHandle periodic_task_handle_; };