set default max payload size to 1450 (#811)

this is to support SRTP more easily.
This commit is contained in:
Alessandro Ros
2025-06-29 12:51:54 +02:00
committed by GitHub
parent 33a87b2270
commit bee7cc4d6b
29 changed files with 651 additions and 680 deletions

View File

@@ -2,7 +2,6 @@
package main
import (
"fmt"
"log"
"github.com/bluenviron/gortsplib/v4"
@@ -60,7 +59,7 @@ func main() {
reader.OnPacketRTPAny(func(_ *description.Media, _ format.Format, pkt *rtp.Packet) {
err2 := publisher.WritePacketRTP(desc.Medias[0], pkt)
if err2 != nil {
fmt.Printf("ERR: %v", err2)
log.Printf("ERR: %v", err2)
}
})