From 0fcb74d7490f975c717c85ade354ccfe50d1b77a Mon Sep 17 00:00:00 2001 From: peah Date: Wed, 23 Aug 2017 09:18:49 -0700 Subject: [PATCH] Robustified the detection of linear filter quality in AEC3 BUG=webrtc:8141 Review-Url: https://codereview.webrtc.org/3000383002 Cr-Commit-Position: refs/heads/master@{#19468} --- webrtc/modules/audio_processing/aec3/aec_state.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_processing/aec3/aec_state.cc b/webrtc/modules/audio_processing/aec3/aec_state.cc index ccb8639472..cc344abca0 100644 --- a/webrtc/modules/audio_processing/aec3/aec_state.cc +++ b/webrtc/modules/audio_processing/aec3/aec_state.cc @@ -175,7 +175,7 @@ void AecState::Update(const std::vector>& (!echo_saturation_) && (!render_received_ || blocks_with_filter_adaptation_ > kEchoPathChangeConvergenceBlocks) && - filter_delay_ && echo_path_change_counter_ <= 0; + filter_delay_ && echo_path_change_counter_ <= 0 && external_delay_; // After an amount of active render samples for which an echo should have been // detected in the capture signal if the ERL was not infinite, flag that a