mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
rtp: Fix constant for maximum two-byte RTP header extension length
The value is stored as an 8 bit integer, with 0 meaning that there is not data for this extension. That means that the maximum length is 255 bytes and not 256 bytes. On the other hand, the one-byte RTP header extensions are storing the length as a 4 bit integer with an offset of 1 (i.e. 0 means 1 byte extension length), so here 16 is the correct maximum length. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6180>
This commit is contained in:
parent
476a34cfdb
commit
eb641af450
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ static guint gst_rtp_base_payload_signals[LAST_SIGNAL] = { 0 };
|
|||
#define DEFAULT_AUTO_HEADER_EXTENSION TRUE
|
||||
|
||||
#define RTP_HEADER_EXT_ONE_BYTE_MAX_SIZE 16
|
||||
#define RTP_HEADER_EXT_TWO_BYTE_MAX_SIZE 256
|
||||
#define RTP_HEADER_EXT_TWO_BYTE_MAX_SIZE 255
|
||||
#define RTP_HEADER_EXT_ONE_BYTE_MAX_ID 14
|
||||
#define RTP_HEADER_EXT_TWO_BYTE_MAX_ID 255
|
||||
|
||||
|
|
Loading…
Reference in a new issue