Length-correction of the look window used during nonlinear echo removal

Bug: webrtc:8783,chromium:804267
Change-Id: Ib05a28112fe53c2d510ae1bafd05e535fdf35214
Reviewed-on: https://webrtc-review.googlesource.com/42582
Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org>
Commit-Queue: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21724}
This commit is contained in:
Per Åhgren
2018-01-22 12:13:37 +01:00
committed by Commit Bot
parent 9c1848952e
commit 395791fea7

View File

@ -114,7 +114,7 @@ void ResidualEchoEstimator::Estimate(
// TODO(peah): Add lookahead since that was what was there initially.
EchoGeneratingPower(
render_buffer, std::max(0, aec_state.FilterDelay() - 1),
std::min(kKnownDelayRenderWindowSize - 1, aec_state.FilterDelay() + 1),
std::min(kKnownDelayRenderWindowSize - 1, aec_state.FilterDelay() + 4),
&X2);
// Subtract the stationary noise power to avoid stationary noise causing