calc_payload_len


Description:

public static uint calc_payload_len (uint packet_len, uint8 pad_len, uint8 csrc_count)

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:

packet_len

the length of the total RTP packet

pad_len

the amount of padding

csrc_count

the number of CSRC entries

Returns:

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




2022 vala-language.org