mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 17:32:23 +00:00
fix panic in rtpstats (#1570)
This commit is contained in:
1 parent
602f987ed7
commit
1b09fc9721
1 file changed
+4
@@ -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