prevent RTPPacketsJitter from being NaN (#670)

This commit is contained in:
Alessandro Ros
2024-12-25 15:32:16 +01:00
committed by GitHub
parent 5d44205cbe
commit 4d3d6bc108
2 changed files with 8 additions and 2 deletions

View File

@@ -425,7 +425,10 @@ func (ss *ServerSession) Stats() *StatsSession {
}
}
}
return v / n
if n != 0 {
return v / n
}
return 0
}(),
RTCPPacketsReceived: func() uint64 {
v := uint64(0)