Index: webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
index 024e028393057c54e2772945c8d49f0f17cb1aea..89e7735c7a4da9ae45dd42f0ed15ade497a28b79 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
@@ -288,9 +288,8 @@ void RTPSender::SetSendPayloadType(int8_t payload_type) { |
} |
void RTPSender::SetMaxRtpPacketSize(size_t max_packet_size) { |
- // Sanity check. |
- RTC_DCHECK(max_packet_size >= 100 && max_packet_size <= IP_PACKET_SIZE) |
- << "Invalid max payload length: " << max_packet_size; |
+ RTC_DCHECK_GE(max_packet_size, 100); |
+ RTC_DCHECK_LE(max_packet_size, IP_PACKET_SIZE); |
rtc::CritScope lock(&send_critsect_); |
max_packet_size_ = max_packet_size; |
} |