Index: webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc b/webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc |
index 82a4f68d69150cc7157d4c685a331b77aecbf5a4..0d3fdd1acd9235beeb929b45b58513b3d0e7a0fb 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc |
@@ -13,6 +13,7 @@ |
#include <vector> |
#include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" |
+#include "webrtc/rtc_base/safe_conversions.h" |
namespace webrtc { |
@@ -23,7 +24,7 @@ void RtpPacketReceived::GetHeader(RTPHeader* header) const { |
header->timestamp = Timestamp(); |
header->ssrc = Ssrc(); |
std::vector<uint32_t> csrcs = Csrcs(); |
- header->numCSRCs = csrcs.size(); |
+ header->numCSRCs = rtc::dchecked_cast<uint8_t>(csrcs.size()); |
for (size_t i = 0; i < csrcs.size(); ++i) { |
header->arrOfCSRCs[i] = csrcs[i]; |
} |