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 049930570b
commit 6ccb0d70d9
1 changed files with 2 additions and 2 deletions

View File

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