Avoiding overflow in cross correlation in NetEq.

BUG=

Review-Url: https://codereview.webrtc.org/1908623002
Cr-Commit-Position: refs/heads/master@{#12538}
This commit is contained in:
minyue
2016-04-27 15:06:10 -07:00
committed by Commit bot
parent 8034614b81
commit 3d09dfdbba
21 changed files with 186 additions and 112 deletions

View File

@ -120,12 +120,10 @@ class Expand {
// 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();