Skip to content
Snippets Groups Projects
Commit fd3139cc authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Separate qtheta offset for stereo

parent 8d186014
No related branches found
No related tags found
No related merge requests found
......@@ -598,7 +598,7 @@ static void quant_band(int encode, const CELTMode *m, int i, celt_norm *X, celt_
int qalloc;
celt_word16 mid, side;
int offset, N2;
offset = ((m->logN[i]+(LM<<BITRES))>>1)-QTHETA_OFFSET;
offset = ((m->logN[i]+(LM<<BITRES))>>1) - (stereo ? QTHETA_OFFSET_STEREO : QTHETA_OFFSET);
/* Decide on the resolution to give to the split parameter theta */
N2 = 2*N-1;
......
......@@ -41,7 +41,8 @@
#define BITRES 3
#define FINE_OFFSET 14
#define QTHETA_OFFSET (-2)
#define QTHETA_OFFSET (-4)
#define QTHETA_OFFSET_STEREO (0)
#define BITOVERFLOW 30000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment