log packet sizes if UDPMaxPayloadSize is exceeded (#4668)
Co-authored-by: Alessandro Ros <aler9.dev@gmail.com>
This commit is contained in:
co-authored by
Alessandro Ros
parent
35e1f486c9
commit
2e429158a8
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user