Browse Source

webrtc: discard empty RTP packets coming from Chrome (#1804)

pull/1806/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
2686c7b04b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      internal/core/webrtc_incoming_track.go

5
internal/core/webrtc_incoming_track.go

@ -99,6 +99,11 @@ func (t *webRTCIncomingTrack) start(stream *stream) { @@ -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…
Cancel
Save