Index: webrtc/modules/audio_coding/neteq/statistics_calculator.cc |
diff --git a/webrtc/modules/audio_coding/neteq/statistics_calculator.cc b/webrtc/modules/audio_coding/neteq/statistics_calculator.cc |
index 5a4ef548898721da688859661840ccbd4df6c780..773d691e30ef2af0b1a53630f984608ba02b9de4 100644 |
--- a/webrtc/modules/audio_coding/neteq/statistics_calculator.cc |
+++ b/webrtc/modules/audio_coding/neteq/statistics_calculator.cc |
@@ -195,7 +195,7 @@ void StatisticsCalculator::LogDelayedPacketOutageEvent(int outage_duration_ms) { |
void StatisticsCalculator::StoreWaitingTime(int waiting_time_ms) { |
excess_buffer_delay_.RegisterSample(waiting_time_ms); |
DCHECK_LE(waiting_times_.size(), kLenWaitingTimes); |
- while (waiting_times_.size() >= kLenWaitingTimes) { |
+ if (waiting_times_.size() == kLenWaitingTimes) { |
// Erase first value. |
waiting_times_.pop_front(); |
} |