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

Unified Diff: chrome/browser/media/webrtc_rtp_dump_writer.cc

Issue 1485023003: Misc truncation fixes for gn builds with VS 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes to four more components/content files Created 5 years 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 | « no previous file | chrome/test/chromedriver/key_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_rtp_dump_writer.cc
diff --git a/chrome/browser/media/webrtc_rtp_dump_writer.cc b/chrome/browser/media/webrtc_rtp_dump_writer.cc
index 06e6e8b65e65103263c7fb7d7b68cab6da3fec9b..f5871d493397ec6f54deae6aa703bb80678062d3 100644
--- a/chrome/browser/media/webrtc_rtp_dump_writer.cc
+++ b/chrome/browser/media/webrtc_rtp_dump_writer.cc
@@ -306,7 +306,8 @@ void WebRtcRtpDumpWriter::WriteRtpPacket(const uint8* packet_header,
FlushBuffer(incoming, false, FlushDoneCallback());
WritePacketDumpHeaderBigEndian(
- start_time_, packet_dump_length, packet_length, dest_buffer);
+ start_time_, base::checked_cast<uint16>(packet_dump_length),
+ base::checked_cast<uint16>(packet_length), dest_buffer);
// Writes the actual RTP packet header.
AppendToBuffer(packet_header, header_length, dest_buffer);
« no previous file with comments | « no previous file | chrome/test/chromedriver/key_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698