Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_packet_received.cc

Issue 3013623002: Fix no_size_t_to_int_warning in rtp_rtcp:rtp_rtcp_format target (Closed)
Patch Set: . Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_packet.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_packet.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698