calc_packet_len


Description:

public static uint calc_packet_len (uint payload_len, uint8 pad_len, uint8 csrc_count)

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:

payload_len

the length of the payload

pad_len

the amount of padding

csrc_count

the number of CSRC entries

Returns:

The total length of an RTP header with given parameters.