Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 25a0a8a

Browse files
authored
Change rtp max package size to 1200 (#930)
* Change rtp max package size to 1200
1 parent 5a72de2 commit 25a0a8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/core/rtc_adapter/VideoSendAdapter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ namespace rtc_adapter {
2121
// To make it consistent with the webrtc library, we allow packets to be transmitted
2222
// in up to 2 times max video bitrate if the bandwidth estimate allows it.
2323
static const int TRANSMISSION_MAXBITRATE_MULTIPLIER = 2;
24+
static const int kMaxRtpPacketSize = 1200;
2425

2526
static int getNextNaluPosition(uint8_t* buffer, int buffer_size, bool& is_aud_or_sei, int& sc_len)
2627
{
@@ -198,6 +199,8 @@ bool VideoSendAdapterImpl::init()
198199
m_rtpRtcp->SetMid(mid);
199200
}
200201

202+
m_rtpRtcp->SetMaxRtpPacketSize(kMaxRtpPacketSize);
203+
201204
webrtc::RTPSenderVideo::Config video_config;
202205
m_playoutDelayOracle = std::make_unique<webrtc::PlayoutDelayOracle>();
203206
m_fieldTrialConfig = std::make_unique<webrtc::FieldTrialBasedConfig>();

0 commit comments

Comments
 (0)