RTPBuffer.calcPayloadLen

uint calcPayloadLen(uint packetLen, ubyte padLen, ubyte csrcCount) static nothrow

Calculate the length of the payload of an RTP packet with size packet_len, a padding of pad_len and a csrc_count CSRC entries.

Parameters

packetLenthe length of the total RTP packet
padLenthe amount of padding
csrcCountthe number of CSRC entries

Returns

The length of the payload of an RTP packet with given parameters.