Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speexdsp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Matthews <le.businessman@gmail.com>2014-04-22 09:40:52 +0400
committerTristan Matthews <le.businessman@gmail.com>2014-04-22 09:41:50 +0400
commit470749813a6e5b1903e9a168d878d28300b69dc0 (patch)
tree4d91da0083f35ab67bdbed75901ee307a0be4d05 /libspeexdsp
parent074ec58e08ce5faa797f526db225770348b1ace1 (diff)
scal: remove dead code
beta is set but immediately overrwritten before being read, therefore this line had no effect
Diffstat (limited to 'libspeexdsp')
-rw-r--r--libspeexdsp/scal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libspeexdsp/scal.c b/libspeexdsp/scal.c
index 315ed5a..d2ea59c 100644
--- a/libspeexdsp/scal.c
+++ b/libspeexdsp/scal.c
@@ -175,7 +175,7 @@ EXPORT void speex_decorrelate(SpeexDecorrState *st, const spx_int16_t *in, spx_i
buff[i+st->frame_size] = in[i*st->channels+ch];
x = buff+st->frame_size;
- beta = 1.-.3*amount*amount;
+
if (amount>1)
beta = 1-sqrt(.4*amount);
else