diff options
author | Timothy B. Terriberry <tterribe@xiph.org> | 2010-08-06 03:30:42 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2010-08-06 04:11:26 +0400 |
commit | 245c9af59d68b2dfadd1bc2c0db9d1f13857a1cc (patch) | |
tree | 749ec0240f14fb25270e5f026fa5971bb09eda05 /libcelt/dump_modes.c | |
parent | 08b88c8d3d355d1c3e48d2041eaa51de7e30b505 (diff) |
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.
Diffstat (limited to 'libcelt/dump_modes.c')
-rw-r--r-- | libcelt/dump_modes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcelt/dump_modes.c b/libcelt/dump_modes.c index 845f87b..1552478 100644 --- a/libcelt/dump_modes.c +++ b/libcelt/dump_modes.c @@ -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); |