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

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-02-04 06:56:01 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-02-04 07:25:13 +0300
commitb8a6b31205858b62a1423807fba32cab73c7f85c (patch)
tree82ab4ae4b2a66c72604599eb8acc038294671584 /libcelt
parent23340e2249c660af3cd1914128e1845fceddeb97 (diff)
This removes some pointless/dead code.
Diffstat (limited to 'libcelt')
-rw-r--r--libcelt/bands.c1
-rw-r--r--libcelt/celt.c1
-rw-r--r--libcelt/pitch.c3
3 files changed, 1 insertions, 4 deletions
diff --git a/libcelt/bands.c b/libcelt/bands.c
index b63b31f..349b72f 100644
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -1139,7 +1139,6 @@ static unsigned quant_band(int encode, const CELTMode *m, int i, celt_norm *X, c
haar1(X, N0>>k, 1<<k);
}
B<<=recombine;
- N_B>>=recombine;
/* Scale output for later folding */
if (lowband_out)
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 8c30af9..2d79fe8 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1009,7 +1009,6 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
VARDECL(celt_sig, _pre);
celt_sig *pre[2];
SAVE_STACK;
- c = 0;
ALLOC(_pre, CC*(N+COMBFILTER_MAXPERIOD), celt_sig);
pre[0] = _pre;
diff --git a/libcelt/pitch.c b/libcelt/pitch.c
index 2356c9d..5a03571 100644
--- a/libcelt/pitch.c
+++ b/libcelt/pitch.c
@@ -250,7 +250,7 @@ static const int second_check[16] = {0, 0, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3
celt_word16 remove_doubling(celt_word16 *x, int maxperiod, int minperiod,
int N, int *_T0, int prev_period, celt_word16 prev_gain)
{
- int k, i, T, T0, k0;
+ int k, i, T, T0;
celt_word16 g, g0;
celt_word16 pg;
celt_word32 xy,xx,yy;
@@ -291,7 +291,6 @@ celt_word16 remove_doubling(celt_word16 *x, int maxperiod, int minperiod,
#else
g = g0 = xy/sqrt(1+xx*yy);
#endif
- k0 = 1;
/* Look for any pitch at T/k */
for (k=2;k<=15;k++)
{