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:
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-01-23 05:22:03 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-01-23 05:22:03 +0300
commitad3d813f010ab15e032bc0b552ea9dace664185f (patch)
treeaefe3bbf0598d23e49cb991f64c968dc36cdacf4 /libcelt/vq.c
parent568326bfe2c35aef831b1975fa30f80d8a79508a (diff)
Stop uselessly calling haar1() when resynth=0
This was computing on uninitialized data (though the result was never used)
Diffstat (limited to 'libcelt/vq.c')
-rw-r--r--libcelt/vq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/vq.c b/libcelt/vq.c
index d1f1d79..02feafa 100644
--- a/libcelt/vq.c
+++ b/libcelt/vq.c
@@ -175,7 +175,7 @@ static unsigned extract_collapse_mask(int *iy, int N, int B)
return collapse_mask;
}
-unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B, celt_norm *lowband,
+unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B,
int resynth, ec_enc *enc, celt_word16 gain)
{
VARDECL(celt_norm, y);
@@ -340,7 +340,7 @@ unsigned alg_quant(celt_norm *X, int N, int K, int spread, int B, celt_norm *low
/** Decode pulse vector and combine the result with the pitch vector to produce
the final normalised signal in the current band. */
unsigned alg_unquant(celt_norm *X, int N, int K, int spread, int B,
- celt_norm *lowband, ec_dec *dec, celt_word16 gain)
+ ec_dec *dec, celt_word16 gain)
{
int i;
celt_word32 Ryy;