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 <scottmg@chromium.org>. Cr-Commit-Position: refs/heads/master@{#9351}
This commit is contained in:
parent
8e6fd46cc3
commit
84f81d8fa1
@ -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<unsigned int>(config_.rtp.max_packet_size + 28));
|
||||
DCHECK_LE(config_.rtp.max_packet_size, static_cast<size_t>(0xFFFF - 28));
|
||||
vie_channel_->SetMTU(static_cast<uint16_t>(config_.rtp.max_packet_size + 28));
|
||||
|
||||
DCHECK(config.encoder_settings.encoder != nullptr);
|
||||
DCHECK_GE(config.encoder_settings.payload_type, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user