RTPBuffer.calcPacketLen
uint calcPacketLen(uint payloadLen, ubyte padLen, ubyte csrcCount)Calculate the total length of an RTP packet with a payload size of payload_len, a padding of pad_len and a csrc_count CSRC entries.
Parameters
payloadLen | the length of the payload |
padLen | the amount of padding |
csrcCount | the number of CSRC entries |
Returns
The total length of an RTP header with given parameters.