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>2009-07-26 04:42:24 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-07-26 04:42:24 +0400
commit91f07dc125247a422c186edbebc05f54380b2dbf (patch)
tree683050a6727a3e875772a90bc9f03688ef59b3a9 /libcelt/rate.c
parent949a29bf0c7305bd79021815a06123b343972743 (diff)
Changing some code to use BITRES directly instead of its value.
Diffstat (limited to 'libcelt/rate.c')
-rw-r--r--libcelt/rate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/rate.c b/libcelt/rate.c
index b388701..c38391f 100644
--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -146,7 +146,7 @@ static void interp_bits2pulses(const CELTMode *m, int *bits1, int *bits2, int to
N=m->eBands[j+1]-m->eBands[j];
d=C*N<<BITRES;
- offset = 50 - log2_frac(N, 4);
+ offset = FINE_OFFSET - log2_frac(N, BITRES);
/* Offset for the number of fine bits compared to their "fair share" of total/N */
offset = bits[j]-offset*N*C;
if (offset < 0)