Fix dump_modes when requesting multiple modes.

dump_modes() was re-using a loop index for a loop nested inside
 the main one, so it would only output the struct for the first
 one.
This commit is contained in:
Timothy B. Terriberry 2010-08-05 16:30:42 -07:00 committed by Jean-Marc Valin
parent 08b88c8d3d
commit 245c9af59d

View file

@ -152,8 +152,8 @@ void dump_modes(FILE *file, CELTMode **modes, int nb_modes)
fprintf(file, "%d,\t/* nbEBands */\n", mode->nbEBands);
fprintf(file, "%d,\t/* effEBands */\n", mode->effEBands);
fprintf(file, "{");
for (i=0;i<4;i++)
fprintf(file, WORD16 ", ", mode->preemph[i]);
for (j=0;j<4;j++)
fprintf(file, WORD16 ", ", mode->preemph[j]);
fprintf(file, "},\t/* preemph */\n");
fprintf(file, "eBands%d_%d,\t/* eBands */\n", mode->Fs, mdctSize);
fprintf(file, "%d,\t/* nbAllocVectors */\n", mode->nbAllocVectors);