Rename too long variable name to extmap_allow_mixed
Bug: webrtc:7990 Change-Id: I990111e473553163cecb9c73fec90d07c24aca02 Reviewed-on: https://webrtc-review.googlesource.com/c/107362 Commit-Queue: Johannes Kron <kron@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Seth Hampson <shampson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25307}
This commit is contained in:
committed by
Commit Bot
parent
2edab4c026
commit
9581bc4c52
@ -211,8 +211,7 @@ rtc::ArrayView<uint8_t> RtpPacket::AllocateRawExtension(int id, size_t length) {
|
||||
const bool two_byte_header_required =
|
||||
id > RtpExtension::kOneByteHeaderExtensionMaxId ||
|
||||
length > RtpExtension::kOneByteHeaderExtensionMaxValueSize || length == 0;
|
||||
RTC_CHECK(!two_byte_header_required ||
|
||||
extensions_.IsMixedOneTwoByteHeaderSupported());
|
||||
RTC_CHECK(!two_byte_header_required || extensions_.ExtmapAllowMixed());
|
||||
|
||||
uint16_t profile_id;
|
||||
if (extensions_size_ > 0) {
|
||||
@ -553,7 +552,7 @@ rtc::ArrayView<uint8_t> RtpPacket::AllocateExtension(ExtensionType type,
|
||||
size_t length) {
|
||||
// TODO(webrtc:7990): Add support for empty extensions (length==0).
|
||||
if (length == 0 || length > RtpExtension::kMaxValueSize ||
|
||||
(!extensions_.IsMixedOneTwoByteHeaderSupported() &&
|
||||
(!extensions_.ExtmapAllowMixed() &&
|
||||
length > RtpExtension::kOneByteHeaderExtensionMaxValueSize)) {
|
||||
return nullptr;
|
||||
}
|
||||
@ -563,7 +562,7 @@ rtc::ArrayView<uint8_t> RtpPacket::AllocateExtension(ExtensionType type,
|
||||
// Extension not registered.
|
||||
return nullptr;
|
||||
}
|
||||
if (!extensions_.IsMixedOneTwoByteHeaderSupported() &&
|
||||
if (!extensions_.ExtmapAllowMixed() &&
|
||||
id > RtpExtension::kOneByteHeaderExtensionMaxId) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user