From 245c9af59d68b2dfadd1bc2c0db9d1f13857a1cc Mon Sep 17 00:00:00 2001 From: "Timothy B. Terriberry" Date: Thu, 5 Aug 2010 16:30:42 -0700 Subject: 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. --- libcelt/dump_modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcelt/dump_modes.c') 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); -- cgit v1.2.3