ref: 0889e2ac15675618d48e3c3fdd4a1bbe46d4d067
parent: 9cc56bf0af85bfa208e26c07afbca383e2a52b4e
author: Jean-Marc Valin <[email protected]>
date: Wed Feb 2 16:03:31 EST 2011
Getting the right DoFs for dual stereo
--- a/libcelt/rate.c
+++ b/libcelt/rate.c
@@ -448,7 +448,7 @@
bits[j] -= excess;
/* Compensate for the extra DoF in stereo */
- den=(C*N+ ((C==2 && N>2) ? 1 : 0));
+ den=(C*N+ ((C==2 && N>2 && !*dual_stereo) ? 1 : 0));
NClogN = den*(m->logN[j] + logM);