mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-13 10:14:58 +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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sometimes Chrome sends empty RTP packets. ignore them.
|
||||||
|
if len(pkt.Payload) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
stream.writeRTPPacket(t.media, t.format, pkt, time.Now())
|
stream.writeRTPPacket(t.media, t.format, pkt, time.Now())
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user