diff --git a/pkg/nack/generator_interceptor.go b/pkg/nack/generator_interceptor.go index c476acc9..051e424c 100644 --- a/pkg/nack/generator_interceptor.go +++ b/pkg/nack/generator_interceptor.go @@ -191,6 +191,10 @@ func (n *GeneratorInterceptor) loop(rtcpWriter interceptor.RTCPWriter) { } } + if len(filteredMissing) == 0 { + continue + } + if _, err := rtcpWriter.Write([]rtcp.Packet{nack}, interceptor.Attributes{}); err != nil { n.log.Warnf("failed sending nack: %+v", err) }