From e6a4793b16ca961da660257bb6cf3350d08fef96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20de=20Vicente=20Pe=C3=B1a?= Date: Fri, 18 Jan 2019 16:48:48 +0100 Subject: [PATCH] AEC3: avoiding a warning in the reverberation decay estimator. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In this CL a warning is avoided in the reverberation decay estimator code. The change is bitexact. Bug: chromium:921582 Change-Id: I5a91f4b5970a21ba6da7254cf7fad8c2d0bcac4b Reviewed-on: https://webrtc-review.googlesource.com/c/118441 Commit-Queue: Jesus de Vicente Pena Reviewed-by: Per Ã…hgren Cr-Commit-Position: refs/heads/master@{#26342} --- modules/audio_processing/aec3/reverb_decay_estimator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/audio_processing/aec3/reverb_decay_estimator.cc b/modules/audio_processing/aec3/reverb_decay_estimator.cc index 95fd13af59..b0082f16ad 100644 --- a/modules/audio_processing/aec3/reverb_decay_estimator.cc +++ b/modules/audio_processing/aec3/reverb_decay_estimator.cc @@ -287,7 +287,7 @@ void ReverbDecayEstimator::LateReverbLinearRegressor::Reset( // Arithmetic sum of $2 \sum_{i=0.5}^{(N-1)/2}i^2$ calculated directly. nn_ = SymmetricArithmetricSum(N); // The linear regression approach assumes symmetric index around 0. - count_ = N > 0 ? count_ = -N * 0.5f + 0.5f : 0.f; + count_ = N > 0 ? -N * 0.5f + 0.5f : 0.f; N_ = N; n_ = 0; }