mirror of https://bitbucket.org/ausocean/av.git
protocol/rtp: commented rtpVer const and made defaultHeadSize 12 rather than 4*3
This commit is contained in:
parent
049930570b
commit
6ccb0d70d9
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue