ref: ae035a540bb682740dc365bcc5558601a77d2857
parent: 0ff9be6aec23cb8134de64382b16e361516d808c
author: Jean-Marc Valin <[email protected]>
date: Wed Aug 25 18:41:00 EDT 2010
Fixes an off-by-one bug in the static mode's MDCT twiddles
--- a/libcelt/dump_modes.c
+++ b/libcelt/dump_modes.c
@@ -186,8 +186,8 @@
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");