Robustified the detection of linear filter quality in AEC3
BUG=webrtc:8141
Review-Url: https://codereview.webrtc.org/3000383002
Cr-Original-Commit-Position: refs/heads/master@{#19468}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 0fcb74d7490f975c717c85ade354ccfe50d1b77a
diff --git a/modules/audio_processing/aec3/aec_state.cc b/modules/audio_processing/aec3/aec_state.cc
index ccb8639..cc344ab 100644
--- a/modules/audio_processing/aec3/aec_state.cc
+++ b/modules/audio_processing/aec3/aec_state.cc
@@ -175,7 +175,7 @@
(!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