mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-12 09:44:59 +00:00
webrtc: discard empty RTP packets coming from Chrome (#1804)
This commit is contained in:
parent
418d987a86
commit
2686c7b04b
@ -99,6 +99,11 @@ func (t *webRTCIncomingTrack) start(stream *stream) {
|
||||
return
|
||||
}
|
||||
|
||||
// sometimes Chrome sends empty RTP packets. ignore them.
|
||||
if len(pkt.Payload) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
stream.writeRTPPacket(t.media, t.format, pkt, time.Now())
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user