mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
0093a54b34
commit
7a4de9ffe7
2 changed files with 11 additions and 3 deletions
|
@ -64,7 +64,11 @@ const int kVideoSamplerate = 90000;
|
|||
// kRtpPacketSize = kRtpMaxPayloadSize + paddings
|
||||
// For example, if kRtpPacketSize is 1500, recommend to set kRtpMaxPayloadSize to 1400,
|
||||
// which reserves 100 bytes for SRTP or paddings.
|
||||
const int kRtpMaxPayloadSize = kRtpPacketSize - 200;
|
||||
// otherwise, the kRtpPacketSize must less than MTU, in webrtc source code,
|
||||
// the rtp max size is assigned by kVideoMtu = 1200.
|
||||
// so we set kRtpMaxPayloadSize = 1200.
|
||||
// see @doc https://groups.google.com/g/discuss-webrtc/c/gH5ysR3SoZI
|
||||
const int kRtpMaxPayloadSize = kRtpPacketSize - 300;
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue