fix encoding of RTP packets with padding

this fixes a SIGSEGV with GStreamer
This commit is contained in:
aler9
2022-03-08 12:47:53 +01:00
parent 94aaa6719d
commit e12b22ae77
38 changed files with 52 additions and 36 deletions

View File

@@ -203,6 +203,10 @@ func (u *serverUDPListener) processRTP(clientData *clientData, payload []byte) {
return
}
// remove padding
pkt.Header.Padding = false
pkt.PaddingSize = 0
now := time.Now()
atomic.StoreInt64(clientData.ss.udpLastFrameTime, now.Unix())
clientData.ss.announcedTracks[clientData.trackID].rtcpReceiver.ProcessPacketRTP(now, pkt)