diff --git a/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc b/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc index d1336199b1..7c8ccb4df7 100644 --- a/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc +++ b/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc @@ -32,13 +32,13 @@ void MatchedFilterLagAggregator::Reset() { rtc::Optional MatchedFilterLagAggregator::Aggregate( rtc::ArrayView lag_estimates) { - // hoose the strongest lag estimate as the best one. + // Choose the strongest lag estimate as the best one. float best_accuracy = 0.f; int best_lag_estimate_index = -1; for (size_t k = 0; k < lag_estimates.size(); ++k) { if (lag_estimates[k].updated && lag_estimates[k].reliable) { if (lag_estimates[k].accuracy > best_accuracy) { - best_accuracy = std::max(0.f, lag_estimates[k].accuracy); + best_accuracy = lag_estimates[k].accuracy; best_lag_estimate_index = static_cast(k); } }