rename maxPacketSize into udpMaxPayloadSize (#249)

This commit is contained in:
Alessandro Ros
2023-04-15 12:24:48 +02:00
committed by GitHub
parent 5a6ddfc23d
commit 30af49c412
7 changed files with 21 additions and 21 deletions

View File

@@ -68,7 +68,7 @@ func (sm *serverStreamMedia) allocateMulticastHandler(s *Server) error {
}
func (sm *serverStreamMedia) WritePacketRTPWithNTP(ss *ServerStream, pkt *rtp.Packet, ntp time.Time) {
byts := make([]byte, maxPacketSize)
byts := make([]byte, udpMaxPayloadSize)
n, err := pkt.MarshalTo(byts)
if err != nil {
return