rtp_rtcp/source: fix some minor typos
Bug: None Change-Id: Iedc6e3b7e0cb92256255afc4cd76c66b01099c1e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/310080 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40362}
This commit is contained in:
parent
c26d96ac56
commit
be90237a0a
@ -31,7 +31,7 @@
|
||||
// Write an unsigned 40-bit (5 byte) integer in big endian format
|
||||
// ByteWriter<uint64_t, 5>::WriteBigEndian(buffer, val);
|
||||
//
|
||||
// These classes are implemented as recursive templetizations, inteded to make
|
||||
// These classes are implemented as recursive templetizations, intended to make
|
||||
// it easy for the compiler to completely inline the reading/writing.
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@ -179,9 +179,9 @@ bool Flexfec03HeaderReader::ReadFecHeader(
|
||||
}
|
||||
// At this point, K-bits 0 and 1 have been removed, and the front-most
|
||||
// part of the FlexFEC packet mask has been packed accordingly. We will
|
||||
// now shift the remaning part of the packet mask three steps to the left.
|
||||
// This corresponds to the (in total) three K-bits, which have been
|
||||
// removed.
|
||||
// now shift the remaining part of the packet mask three steps to
|
||||
// the left. This corresponds to the (in total) three K-bits, which
|
||||
// have been removed.
|
||||
uint8_t tail_bits = (packet_mask[6] >> 5) & 0x03;
|
||||
packet_mask[5] |= tail_bits;
|
||||
uint64_t mask_part2 =
|
||||
|
||||
@ -179,9 +179,9 @@ bool FlexfecHeaderReader::ReadFecHeader(
|
||||
kFlexfecPacketMaskSizes[2];
|
||||
// At this point, K-bits 0 and 1 have been removed, and the front-most
|
||||
// part of the FlexFEC packet mask has been packed accordingly. We will
|
||||
// now shift the remaning part of the packet mask two steps to the left.
|
||||
// This corresponds to the (in total) two K-bits, which have been
|
||||
// removed.
|
||||
// now shift the remaining part of the packet mask two steps to
|
||||
// the left. This corresponds to the (in total) two K-bits, which
|
||||
// have been removed.
|
||||
uint8_t tail_bits = (data[byte_index] >> 6) & 0x03;
|
||||
data[byte_index - 1] |= tail_bits;
|
||||
uint64_t mask_part2 =
|
||||
|
||||
@ -163,7 +163,7 @@ rtc::ArrayView<const uint8_t> PacketMaskTable::LookUp(int num_media_packets,
|
||||
|
||||
// Generate FEC code mask for {num_media_packets(M), num_fec_packets(N)} (use
|
||||
// N FEC packets to protect M media packets) In the mask, each FEC packet
|
||||
// occupies one row, each bit / coloumn represent one media packet. E.g. Row
|
||||
// occupies one row, each bit / column represent one media packet. E.g. Row
|
||||
// A, Col/Bit B is set to 1, means FEC packet A will have protection for media
|
||||
// packet B.
|
||||
|
||||
|
||||
@ -260,7 +260,7 @@ void StreamStatisticianImpl::MaybeAppendReportBlockAndReset(
|
||||
|
||||
int packets_lost = cumulative_loss_ + cumulative_loss_rtcp_offset_;
|
||||
if (packets_lost < 0) {
|
||||
// Clamp to zero. Work around to accomodate for senders that misbehave with
|
||||
// Clamp to zero. Work around to accommodate for senders that misbehave with
|
||||
// negative cumulative loss.
|
||||
packets_lost = 0;
|
||||
cumulative_loss_rtcp_offset_ = -cumulative_loss_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user