fix panic in rtpstats (#1570)

This commit is contained in:
Paul Wells
2023-04-01 12:39:13 -07:00
committed by GitHub
parent 602f987ed7
commit 1b09fc9721
+4
View File
@@ -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
}