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

payloadLenthe length of the payload
padLenthe amount of padding
csrcCountthe number of CSRC entries

Returns

The total length of an RTP header with given parameters.