Commit b44e94ef authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Also fixing the DoFs for intensity stereo

parent 0889e2ac
......@@ -448,7 +448,7 @@ static inline int interp_bits2pulses(const CELTMode *m, int start, int end, int
bits[j] -= excess;
/* Compensate for the extra DoF in stereo */
den=(C*N+ ((C==2 && N>2 && !*dual_stereo) ? 1 : 0));
den=(C*N+ ((C==2 && N>2 && !*dual_stereo && j<*intensity) ? 1 : 0));
NClogN = den*(m->logN[j] + logM);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment