icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -230,14 +230,21 @@ void RtpPacket::SetCsrcs(rtc::ArrayView<const uint32_t> csrcs) {
|
|||
RTC_DCHECK_EQ(padding_size_, 0);
|
||||
RTC_DCHECK_LE(csrcs.size(), 0x0fu);
|
||||
RTC_DCHECK_LE(kFixedHeaderSize + 4 * csrcs.size(), capacity());
|
||||
|
||||
if (csrcs.size() > kMaxCsrcs) {
|
||||
RTC_LOG(LS_WARNING) << "Truncating CSRC list to spec length " << kMaxCsrcs
|
||||
<< " from " << csrcs.size();
|
||||
csrcs = csrcs.subview(0, kMaxCsrcs);
|
||||
}
|
||||
|
||||
payload_offset_ = kFixedHeaderSize + 4 * csrcs.size();
|
||||
buffer_.SetSize(payload_offset_);
|
||||
WriteAt(0, (data()[0] & 0xF0) | dchecked_cast<uint8_t>(csrcs.size()));
|
||||
size_t offset = kFixedHeaderSize;
|
||||
for (uint32_t csrc : csrcs) {
|
||||
ByteWriter<uint32_t>::WriteBigEndian(WriteAt(offset), csrc);
|
||||
offset += 4;
|
||||
}
|
||||
buffer_.SetSize(payload_offset_);
|
||||
}
|
||||
|
||||
rtc::ArrayView<uint8_t> RtpPacket::AllocateRawExtension(int id, size_t length) {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ class RtpPacket {
|
|||
using ExtensionType = RTPExtensionType;
|
||||
using ExtensionManager = RtpHeaderExtensionMap;
|
||||
|
||||
// Maximum number of CSRCs in an RTP packet as specified in section
|
||||
// "5.1 RTP Fixed Header Fields" of RFC 3550.
|
||||
// Note: This is a different limit than the one that applies to RTCP packets
|
||||
// (which is specified in section 6.1).
|
||||
static constexpr size_t kMaxCsrcs = 15;
|
||||
|
||||
// `extensions` required for SetExtension/ReserveExtension functions during
|
||||
// packet creating and used if available in Parse function.
|
||||
// Adding and getting extensions will fail until `extensions` is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue