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

Fixes an off-by-one bug in the static mode's MDCT twiddles

parent 0ff9be6a
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,8 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
fprintf(file, "#ifndef MDCT_TWIDDLES%d_%d\n", mode->Fs, mdctSize);
fprintf(file, "#define MDCT_TWIDDLES%d_%d\n", mode->Fs, mdctSize);
fprintf (file, "static const celt_word16 mdct_twiddles%d_%d[%d] = {\n",
mode->Fs, mdctSize, mode->mdct.n/4);
for (j=0;j<mode->mdct.n/4;j++)
mode->Fs, mdctSize, mode->mdct.n/4+1);
for (j=0;j<=mode->mdct.n/4;j++)
fprintf (file, WORD16 ", ", mode->mdct.trig[j]);
fprintf (file, "};\n");
......
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