mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-08 10:06:23 -05:00
rtp: take into account ipv4/ipv6 when calculating header size
Calculate the header_size based on the IP version instead of using a hardcoded value. Fixes #4524
This commit is contained in:
parent
180967bb64
commit
830bd19ca2
4 changed files with 22 additions and 4 deletions
|
|
@ -19,8 +19,11 @@ struct rtp_stream;
|
|||
#define ERROR_MSEC 2.0f
|
||||
#define DEFAULT_SESS_LATENCY 100.0f
|
||||
|
||||
/* 28 bytes IP/UDP, 12 bytes RTP header */
|
||||
#define PACKET_HEADER_SIZE (12+28)
|
||||
#define IP4_HEADER_SIZE 20
|
||||
#define IP6_HEADER_SIZE 40
|
||||
#define UDP_HEADER_SIZE 8
|
||||
/* 12 bytes RTP header */
|
||||
#define RTP_HEADER_SIZE 12
|
||||
|
||||
#define DEFAULT_MTU 1280
|
||||
#define DEFAULT_MIN_PTIME 2.0f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue