log packet sizes if UDPMaxPayloadSize is exceeded (#4668)

Co-authored-by: Alessandro Ros <aler9.dev@gmail.com>
This commit is contained in:
Tristan Matthews
2026-02-22 13:42:12 +01:00
committed by GitHub
co-authored by Alessandro Ros
parent 35e1f486c9
commit 2e429158a8
+3 -1
View File
@@ -139,7 +139,9 @@ func (ssf *subStreamFormat) writeUnitInner(u *unit.Unit) error {
ssf.streamFormat.rtpTimeOffset = pkt.Timestamp - uint32(u.PTS)
ssf.streamFormat.parent.Log(logger.Info, "RTP packets are too big, remuxing them into smaller ones")
ssf.streamFormat.parent.Log(logger.Info,
"RTP packets are too big (%d > %d), remuxing them into smaller ones",
len(pkt.Payload), ssf.streamFormat.rtpMaxPayloadSize)
break
}
}