From f1c8fb106711362527442b897ce56bc176eb1211 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Tue, 31 Aug 2010 06:45:32 -0400 Subject: [PATCH] qoffset tuning --- libcelt/rate.c | 4 ++-- libcelt/rate.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcelt/rate.c b/libcelt/rate.c index 319050f87..d8448020a 100644 --- a/libcelt/rate.c +++ b/libcelt/rate.c @@ -195,9 +195,9 @@ static inline void interp_bits2pulses(const CELTMode *m, int start, int end, int /* Changing the offset for allocating the second and third fine energy bit */ if (bits[j] + offset < den*2<logN[j] + logM)*N*C>>BITRES-1; + offset += (m->logN[j] + logM)*N*C>>2; else if (bits[j] + offset < den*3<logN[j] + logM)*N*C>>BITRES; + offset += (m->logN[j] + logM)*N*C>>3; ebits[j] = (bits[j] + offset + (den<<(BITRES-1))) / (den<