Commits

Liam Staskawicz committed 005194b

session: unexport internal routine

Comments (0)

Files changed (1)

 func (s *Session) HandleRtcp(p *RtcpPacket) {
 
 	plen := len(p.buf)
-	s.state.UpdateAvgSize(plen)
+	s.state.updateAvgSize(plen)
 
 	for pos := 0; pos < plen; {
 		hdr := p.Header(pos)
 }
 
 // update avgRtcpSize per section 6.3.3
-func (ss *sessionState) UpdateAvgSize(sz int) {
-	ss.avgRtcpSize = (1.0/16.0)*float32(sz) + (15.0/16.0)*ss.avgRtcpSize
+func (ss *sessionState) updateAvgSize(sz int) {
+	ss.avgRtcpSize = (1./16.)*float32(sz) + (15./16.)*ss.avgRtcpSize
 }
 
 func (s *Session) reportCtrlEvent(code int, ssrc, index uint32) {