From 3dbfac3515db2da6a69c00c5061add0e2eb97ead Mon Sep 17 00:00:00 2001 From: sprang Date: Thu, 29 Jun 2017 07:42:18 -0700 Subject: [PATCH] Fix two simple type mismatches thay may cause compilation issues on win. BUG=None Review-Url: https://codereview.webrtc.org/2955193002 Cr-Commit-Position: refs/heads/master@{#18836} --- .../video_coding/codecs/tools/video_quality_measurement.cc | 2 +- webrtc/video/replay.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc index 80936795a4..d8e139c670 100644 --- a/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc +++ b/webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc @@ -176,7 +176,7 @@ int HandleCommandLineFlags(webrtc::test::TestConfig* config) { if (FLAGS_output_filename.empty()) { // Cut out the filename without extension from the given input file // (which may include a path) - int startIndex = FLAGS_input_filename.find_last_of("/") + 1; + size_t startIndex = FLAGS_input_filename.find_last_of("/") + 1; if (startIndex == 0) { startIndex = 0; } diff --git a/webrtc/video/replay.cc b/webrtc/video/replay.cc index 3bfdf92cd3..6f4ce678f0 100644 --- a/webrtc/video/replay.cc +++ b/webrtc/video/replay.cc @@ -301,7 +301,7 @@ void RtpReplay() { RTPHeader header; std::unique_ptr parser(RtpHeaderParser::Create()); parser->Parse(packet.data, packet.length, &header); - fprintf(stderr, "Packet len=%ld pt=%u seq=%u ts=%u ssrc=0x%8x\n", + fprintf(stderr, "Packet len=%zu pt=%u seq=%u ts=%u ssrc=0x%8x\n", packet.length, header.payloadType, header.sequenceNumber, header.timestamp, header.ssrc); break;