diff --git a/internal/protocols/webrtc/inbound_track.go b/internal/protocols/webrtc/inbound_track.go index e6ae29d6..f44b8210 100644 --- a/internal/protocols/webrtc/inbound_track.go +++ b/internal/protocols/webrtc/inbound_track.go @@ -334,6 +334,9 @@ func (t *InboundTrack) start() { pkts, err2 := rtcp.Unmarshal(buf[:n]) if err2 != nil { + // it's currently impossible for this to be triggered, + // because malformed RTCP packets are already blocked by pion/interceptor + // and in particular by the NACK interceptor. panic(err2) }