Skip to content

Commit

Permalink
Change receiveMTU from 1460 -> 1500
Browse files Browse the repository at this point in the history
Raise the default ReceiveMTU to 1500, as same
as the default MTU setting of WebRTC. This is because
some senders, i.e. FFmpeg, may packetize RTP with 1460
payload + 12 RTP header + etc.

Fixes #2927
  • Loading branch information
Brave Yao authored and Sean-Der committed Oct 15, 2024
1 parent e51984e commit 8fbf821
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ package webrtc
import "github.com/pion/dtls/v3"

const (
// Equal to UDP MTU
receiveMTU = 1460
// default as the standard ethernet MTU
// can be overwritten with SettingEngine.SetReceiveMTU()
receiveMTU = 1500

// simulcastProbeCount is the amount of RTP Packets
// that handleUndeclaredSSRC will read and try to dispatch from
Expand Down

0 comments on commit 8fbf821

Please sign in to comment.