mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
fix encoding of RTP packets with padding
this fixes a SIGSEGV with GStreamer
This commit is contained in:
@@ -183,6 +183,10 @@ func (u *clientUDPListener) processPlayRTP(now time.Time, payload []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
// remove padding
|
||||
pkt.Header.Padding = false
|
||||
pkt.PaddingSize = 0
|
||||
|
||||
u.c.tracks[u.trackID].rtcpReceiver.ProcessPacketRTP(now, pkt)
|
||||
u.c.OnPacketRTP(u.trackID, pkt)
|
||||
}
|
||||
|
Reference in New Issue
Block a user