Reland "Avoiding overflow in cross correlation in NetEq."
The original CL is https://codereview.webrtc.org/1908623002/
An error was caused by that and this CL fix that problem and reland the CL.
BUG=
Review-Url: https://codereview.webrtc.org/1931933004
Cr-Commit-Position: refs/heads/master@{#12589}
diff --git a/webrtc/modules/audio_coding/neteq/expand.h b/webrtc/modules/audio_coding/neteq/expand.h
index 7f61bf3..44ced0a 100644
--- a/webrtc/modules/audio_coding/neteq/expand.h
+++ b/webrtc/modules/audio_coding/neteq/expand.h
@@ -120,12 +120,10 @@
// Calculate the auto-correlation of |input|, with length |input_length|
// samples. The correlation is calculated from a downsampled version of
- // |input|, and is written to |output|. The scale factor is written to
- // |output_scale|.
+ // |input|, and is written to |output|.
void Correlation(const int16_t* input,
size_t input_length,
- int16_t* output,
- int* output_scale) const;
+ int16_t* output) const;
void UpdateLagIndex();