rtp: set defPayloadSIze to sendLen which is 7 *188 and also commented consts

This commit is contained in:
saxon 2019-01-13 16:40:25 +10:30
parent efbc2a1a77
commit cb762c04c6
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ package rtp
const (
rtpVer = 2
headSize = 3 * 4
defPayloadSize = 7 * 188
defPktSize = headSize + defPayloadSize
headSize = 3 * 4 // Header suze of an rtp packet.
defPayloadSize = sendLen // Default payload size for the rtp packet.
defPktSize = headSize + defPayloadSize // Default packet size is header size + payload size.
)
// Pkt provides fields consistent with RFC3550 definition of an rtp packet