Index: webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
index 490bfbae4a7aca2bc3698ca86afe9cc46b1cf142..7fcc6578fba356fa35964f613548bf8a9db720bd 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.cc |
@@ -337,7 +337,7 @@ bool RTPSenderVideo::SendVideo(RtpVideoCodecTypes video_type, |
retransmission_settings = retransmission_settings_; |
} |
- size_t packet_capacity = rtp_sender_->MaxPayloadLength() - |
+ size_t packet_capacity = rtp_sender_->MaxRtpPacketSize() - |
fec_packet_overhead - |
(rtp_sender_->RtxStatus() ? kRtxHeaderSize : 0); |
RTC_DCHECK_LE(packet_capacity, rtp_header->capacity()); |