ref: 8cfda4a3017e309d1f6ab1e81087f3db3f425877
parent: a66b7574f6257e38155b96bcd43b8f2b18d95c43
author: Jean-Marc Valin <[email protected]>
date: Tue Jan 11 01:39:44 EST 2011
Using intensity_stereo() when itheta==0
--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -691,7 +691,12 @@
}
itheta = (celt_int32)itheta*16384/qn;
if (encode && stereo)
- stereo_split(X, Y, N);
+ {
+ if (itheta==0)
+ intensity_stereo(m, X, Y, bandE, i, N);
+ else
+ stereo_split(X, Y, N);
+ }
/* TODO: Renormalising X and Y *may* help fixed-point a bit at very high rate.
Let's do that at higher complexity */
} else if (stereo) {