diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 17:43:52 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-21 17:43:52 +0000 |
commit | bb2dd9efd8e88a71882bb1fabe1dc5f8fa34afba (patch) | |
tree | 01b9696345d7aa71d3c68f829113034eeb699fde /libavcodec/acelp_vectors.c | |
parent | 8e6daa4a9558668930b370da5708dc353f4e94e1 (diff) | |
download | ffmpeg-bb2dd9efd8e88a71882bb1fabe1dc5f8fa34afba.tar.gz |
Split the input/output data arguments to ff_adaptive_gain_control().
Originally committed as revision 22932 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/acelp_vectors.c')
-rw-r--r-- | libavcodec/acelp_vectors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/acelp_vectors.c b/libavcodec/acelp_vectors.c index a25011f4ff..e41e5facb6 100644 --- a/libavcodec/acelp_vectors.c +++ b/libavcodec/acelp_vectors.c @@ -207,11 +207,11 @@ void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b, + weight_coeff_b * in_b[i]; } -void ff_adaptive_gain_control(float *buf_out, float speech_energ, +void ff_adaptive_gain_control(float *out, const float *in, float speech_energ, int size, float alpha, float *gain_mem) { int i; - float postfilter_energ = ff_dot_productf(buf_out, buf_out, size); + float postfilter_energ = ff_dot_productf(in, in, size); float gain_scale_factor = 1.0; float mem = *gain_mem; @@ -222,7 +222,7 @@ void ff_adaptive_gain_control(float *buf_out, float speech_energ, for (i = 0; i < size; i++) { mem = alpha * mem + gain_scale_factor; - buf_out[i] *= mem; + out[i] = in[i] * mem; } *gain_mem = mem; |