From 2f047ccede4723b9f4e18f9201243f83a4ebd757 Mon Sep 17 00:00:00 2001 From: "bjornv@webrtc.org" Date: Fri, 18 Nov 2011 12:03:25 +0000 Subject: [PATCH] Removed unnecessary variable to avoid compiler error on Win. Review URL: http://webrtc-codereview.appspot.com/267021 git-svn-id: http://webrtc.googlecode.com/svn/trunk@975 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../audio_processing/utility/delay_estimator_wrapper.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/audio_processing/utility/delay_estimator_wrapper.c b/src/modules/audio_processing/utility/delay_estimator_wrapper.c index 8a1b036414..ee0f011ece 100644 --- a/src/modules/audio_processing/utility/delay_estimator_wrapper.c +++ b/src/modules/audio_processing/utility/delay_estimator_wrapper.c @@ -61,10 +61,7 @@ static void MeanEstimatorFloat(float new_value, float* mean_value) { assert(scale < 1.0f); // mean_new = mean_value + ((new_value - mean_value) * scale); - float diff = (new_value - *mean_value) * scale; - float mean_new = *mean_value + diff; - - *mean_value = mean_new; + *mean_value += (new_value - *mean_value) * scale; } // Computes the binary spectrum by comparing the input |spectrum| with a