Unverified 提交 57d25112 authored 作者: José Luis Millán's avatar José Luis Millán 提交者: GitHub

RTCP: Fix trailing space needed by srtp_protect_rtcp (#929)

* RTCP: Fix trailing space needed by srtp_protect_rtcp

* CHANGELOG: enhance message
上级 c0d3b709
# Changelog # Changelog
### 3.10.11
* RTCP: Fix trailing space needed by srtp_protect_rtcp() (PR #929).
### 3.10.10 ### 3.10.10
* Fix the JSON serialization for the payload channel `rtp` event (PR #926 by @mhammo). * Fix the JSON serialization for the payload channel `rtp` event (PR #926 by @mhammo).
......
...@@ -18,10 +18,10 @@ namespace RTC ...@@ -18,10 +18,10 @@ namespace RTC
{ {
public: public:
// Maximum size for a CompundPacket, leaving free space for encryption. // Maximum size for a CompundPacket, leaving free space for encryption.
// 144 is the maximum number of octects that will be added to an RTP packet // SRTP_MAX_TRAILER_LEN+4 is the maximum number of octects that will be
// by srtp_protect(). // added to an RTCP packet by srtp_protect_rtcp().
// srtp.h: SRTP_MAX_TRAILER_LEN (SRTP_MAX_TAG_LEN + SRTP_MAX_MKI_LEN) // srtp.h: SRTP_MAX_TRAILER_LEN (SRTP_MAX_TAG_LEN + SRTP_MAX_MKI_LEN)
constexpr static size_t MaxSize{ RTC::MtuSize - 144u }; constexpr static size_t MaxSize{ RTC::MtuSize - 148u };
public: public:
CompoundPacket() = default; CompoundPacket() = default;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论