mirror of
https://github.com/livekit/livekit.git
synced 2026-08-29 07:39:09 +00:00
fix panic in rtpstats (#1570)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user