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 97469ca35ecf27defdfc971376e4d6ff6399b23d..3197d60f92ecf9248b0ba7fd1e2dc5bba237c0e6 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
@@ -304,7 +304,7 @@ int32_t RTPSender::RegisterPayload( |
uint32_t frequency, |
size_t channels, |
uint32_t rate) { |
- assert(payload_name); |
+ RTC_DCHECK_LT(strlen(payload_name), RTP_PAYLOAD_NAME_SIZE); |
rtc::CritScope lock(&send_critsect_); |
std::map<int8_t, RtpUtility::Payload*>::iterator it = |