diff --git a/pkg/sfu/buffer/rtpstats.go b/pkg/sfu/buffer/rtpstats.go index 8c4c9da37..f1176f5d2 100644 --- a/pkg/sfu/buffer/rtpstats.go +++ b/pkg/sfu/buffer/rtpstats.go @@ -1526,6 +1526,10 @@ func AggregateRTPDeltaInfo(deltaInfoList []*RTPDeltaInfo) *RTPDeltaInfo { firs := uint32(0) for _, deltaInfo := range deltaInfoList { + if deltaInfo == nil { + continue + } + if startTime.IsZero() || startTime.After(deltaInfo.StartTime) { startTime = deltaInfo.StartTime }