From 84f81d8fa10d65349ae3132dc98fa8353907a225 Mon Sep 17 00:00:00 2001 From: scottmg Date: Tue, 2 Jun 2015 11:41:07 +0200 Subject: [PATCH] Fix implicit size_t to uint16_t warning on VS2015. Reviewed as https://review.webrtc.org/54609004/, but uploaded against wrong Base URL. R=pbos@webrtc.org TBR= BUG=chromium:440500 Review URL: https://webrtc-codereview.appspot.com/54649004 Patch from scottmg . Cr-Commit-Position: refs/heads/master@{#9351} --- webrtc/video/video_send_stream.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc index 254b7d610a..45ea4669ea 100644 --- a/webrtc/video/video_send_stream.cc +++ b/webrtc/video/video_send_stream.cc @@ -177,8 +177,8 @@ VideoSendStream::VideoSendStream( vie_capturer_ = new ViECapturer(module_process_thread_, vie_encoder_); // 28 to match packet overhead in ModuleRtpRtcpImpl. - vie_channel_->SetMTU( - static_cast(config_.rtp.max_packet_size + 28)); + DCHECK_LE(config_.rtp.max_packet_size, static_cast(0xFFFF - 28)); + vie_channel_->SetMTU(static_cast(config_.rtp.max_packet_size + 28)); DCHECK(config.encoder_settings.encoder != nullptr); DCHECK_GE(config.encoder_settings.payload_type, 0);