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}
diff --git a/modules/rtp_rtcp/source/byte_io.h b/modules/rtp_rtcp/source/byte_io.h index a98eb30..ae70202 100644 --- a/modules/rtp_rtcp/source/byte_io.h +++ b/modules/rtp_rtcp/source/byte_io.h
@@ -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>
diff --git a/modules/rtp_rtcp/source/flexfec_03_header_reader_writer.cc b/modules/rtp_rtcp/source/flexfec_03_header_reader_writer.cc index cf4dc3e..85f6d2c 100644 --- a/modules/rtp_rtcp/source/flexfec_03_header_reader_writer.cc +++ b/modules/rtp_rtcp/source/flexfec_03_header_reader_writer.cc
@@ -179,9 +179,9 @@ } // 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 =
diff --git a/modules/rtp_rtcp/source/flexfec_header_reader_writer.cc b/modules/rtp_rtcp/source/flexfec_header_reader_writer.cc index 79509f3..cfca7cb 100644 --- a/modules/rtp_rtcp/source/flexfec_header_reader_writer.cc +++ b/modules/rtp_rtcp/source/flexfec_header_reader_writer.cc
@@ -179,9 +179,9 @@ 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 =
diff --git a/modules/rtp_rtcp/source/forward_error_correction_internal.cc b/modules/rtp_rtcp/source/forward_error_correction_internal.cc index ac68162..a10f2e6 100644 --- a/modules/rtp_rtcp/source/forward_error_correction_internal.cc +++ b/modules/rtp_rtcp/source/forward_error_correction_internal.cc
@@ -163,7 +163,7 @@ // 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.
diff --git a/modules/rtp_rtcp/source/receive_statistics_impl.cc b/modules/rtp_rtcp/source/receive_statistics_impl.cc index 6fe2000..5ae5d2d 100644 --- a/modules/rtp_rtcp/source/receive_statistics_impl.cc +++ b/modules/rtp_rtcp/source/receive_statistics_impl.cc
@@ -260,7 +260,7 @@ 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_;