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@octasic.com>2011-02-14 21:54:59 +0300
committerJean-Marc Valin <jean-marc.valin@octasic.com>2011-02-14 21:54:59 +0300
commit079b91695099adacffc3dd7d5f6c4ae1e7515bdf (patch)
tree400c854fa3051c25747d40b4f41aeb80ba3e5ec3
parent1e9fb6291c03ada2508d87740c91d833073b3a34 (diff)
using "end" rather than nbEBands for trim_offset[]
-rw-r--r--libcelt/rate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/rate.c b/libcelt/rate.c
index e64b85d..ed7e872 100644
--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -568,7 +568,7 @@ int compute_allocation(const CELTMode *m, int start, int end, const int *offsets
/* Below this threshold, we're sure not to allocate any PVQ bits */
thresh[j] = IMAX((C)<<BITRES, (3*(m->eBands[j+1]-m->eBands[j])<<LM<<BITRES)>>4);
/* Tilt of the allocation curve */
- trim_offset[j] = C*(m->eBands[j+1]-m->eBands[j])*(alloc_trim-5-LM)*(m->nbEBands-j-1)
+ trim_offset[j] = C*(m->eBands[j+1]-m->eBands[j])*(alloc_trim-5-LM)*(end-j-1)
<<(LM+BITRES)>>6;
/* Giving less resolution to single-coefficient bands because they get
more benefit from having one coarse value per coefficient*/