protocol/rtp: commented rtpVer const and made defaultHeadSize 12 rather than 4*3

This commit is contained in:
Saxon 2019-04-07 14:54:24 +09:30
parent df3e66e5b2
commit b5c018276f
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ import (
)
const (
rtpVer = 2
defaultHeadSize = 3 * 4 // Header size of an rtp packet.
rtpVer = 2 // Version of RTP that this package is compatible with.
defaultHeadSize = 12 // Header size of an rtp packet.
defPayloadSize = sendSize // Default payload size for the rtp packet.
defPktSize = defaultHeadSize + defPayloadSize // Default packet size is header size + payload size.
optionalFieldIdx = 12 // This is the idx of optional fields including CSRC and extension header in an RTP packet.