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:
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)