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-03-02 02:08:15 +0300
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2011-03-02 02:08:15 +0300
commit3beb70e54926899dc67f46005662c663babf4bf4 (patch)
treef9beefcca1986a59d295b8054db60d2449379a5d
parentc79c4e3bc7270b08a2800a2dd9d9a5f02767024d (diff)
Fix effectiveBytes computation for VBR
-rw-r--r--libcelt/celt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 23d2e30..1fcda8c 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -952,7 +952,7 @@ int celt_encode_with_ec_float(CELTEncoder * restrict st, const celt_sig * pcm, i
{
celt_int32 den=st->mode->Fs>>BITRES;
vbr_rate=(st->bitrate*frame_size+(den>>1))/den;
- effectiveBytes = vbr_rate>>3;
+ effectiveBytes = vbr_rate>>(3+BITRES);
} else {
celt_int32 tmp;
vbr_rate = 0;