forked from External/mediamtx
parent
ebc723d9d4
commit
5b61983fa6
21 changed files with 144 additions and 82 deletions
|
|
@ -21,6 +21,7 @@ import (
|
|||
|
||||
const (
|
||||
multicastTTL = 16
|
||||
udpMTU = 1472
|
||||
)
|
||||
|
||||
var opusDurations = [32]int{
|
||||
|
|
@ -127,7 +128,7 @@ func (s *udpSource) run(ctx context.Context, cnf *conf.PathConf, reloadConf chan
|
|||
}
|
||||
}
|
||||
|
||||
midbuffer := make([]byte, 0, 1472) // UDP MTU
|
||||
midbuffer := make([]byte, 0, udpMTU)
|
||||
midbufferPos := 0
|
||||
|
||||
readPacket := func(buf []byte) (int, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue