Skip to content

Commit

Permalink
packethistory: s/kMaxPaddingtHistory/kMaxPaddingHistory
Browse files Browse the repository at this point in the history
BUG=None

Change-Id: I554ff068c2350b9f14c12d935d7bfdd466dc5186
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227351
Reviewed-by: Erik Språng <[email protected]>
Commit-Queue: Philipp Hancke <[email protected]>
Cr-Commit-Position: refs/heads/master@{#34642}
  • Loading branch information
fippo authored and WebRTC LUCI CQ committed Aug 4, 2021
1 parent 287f377 commit 06bb464
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/rtp_rtcp/source/rtp_packet_history.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace webrtc {

constexpr size_t RtpPacketHistory::kMaxCapacity;
constexpr size_t RtpPacketHistory::kMaxPaddingtHistory;
constexpr size_t RtpPacketHistory::kMaxPaddingHistory;
constexpr int64_t RtpPacketHistory::kMinPacketDurationMs;
constexpr int RtpPacketHistory::kMinPacketDurationRtt;
constexpr int RtpPacketHistory::kPacketCullingDelayFactor;
Expand Down Expand Up @@ -160,7 +160,7 @@ void RtpPacketHistory::PutRtpPacket(std::unique_ptr<RtpPacketToSend> packet,
StoredPacket(std::move(packet), send_time_ms, packets_inserted_++);

if (enable_padding_prio_) {
if (padding_priority_.size() >= kMaxPaddingtHistory - 1) {
if (padding_priority_.size() >= kMaxPaddingHistory - 1) {
padding_priority_.erase(std::prev(padding_priority_.end()));
}
auto prio_it = padding_priority_.insert(&packet_history_[packet_index]);
Expand Down
2 changes: 1 addition & 1 deletion modules/rtp_rtcp/source/rtp_packet_history.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class RtpPacketHistory {
// Maximum number of packets we ever allow in the history.
static constexpr size_t kMaxCapacity = 9600;
// Maximum number of entries in prioritized queue of padding packets.
static constexpr size_t kMaxPaddingtHistory = 63;
static constexpr size_t kMaxPaddingHistory = 63;
// Don't remove packets within max(1000ms, 3x RTT).
static constexpr int64_t kMinPacketDurationMs = 1000;
static constexpr int kMinPacketDurationRtt = 3;
Expand Down
2 changes: 1 addition & 1 deletion modules/rtp_rtcp/source/rtp_packet_history_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ TEST_P(RtpPacketHistoryTest, RemovesLowestPrioPaddingWhenAtMaxCapacity) {

// Tests the absolute upper bound on number of packets in the prioritized
// set of potential padding packets.
const size_t kMaxNumPackets = RtpPacketHistory::kMaxPaddingtHistory;
const size_t kMaxNumPackets = RtpPacketHistory::kMaxPaddingHistory;
hist_.SetStorePacketsStatus(StorageMode::kStoreAndCull, kMaxNumPackets * 2);
hist_.SetRtt(1);

Expand Down

0 comments on commit 06bb464

Please sign in to comment.