add UDPReadBufferSize option (#857)

This commit is contained in:
Alessandro Ros
2025-08-11 10:49:54 +02:00
committed by GitHub
parent a560c2c24a
commit 7a5df14b2c
11 changed files with 110 additions and 12 deletions

View File

@@ -1,9 +1,6 @@
package gortsplib
const (
// same size as GStreamer's rtspsrc
udpKernelReadBufferSize = 0x80000
// 1500 (UDP MTU) - 20 (IP header) - 8 (UDP header)
udpMaxPayloadSize = 1472