From 2f6c5feae86a1648e20e251f19d6eb5ccb7a47c2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Mon, 28 Jun 2010 17:22:37 -0400 Subject: Oops, fixed an uninitialized var error --- libcelt/modes.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libcelt/modes.c b/libcelt/modes.c index 6e81a2a..9baf2fe 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c @@ -183,7 +183,7 @@ static celt_int16 *compute_ebands(celt_int32 Fs, int frame_size, int res, int *n static void compute_allocation_table(CELTMode *mode, int res) { - int i, j, nBark; + int i, j; unsigned char *allocVectors; int maxBands = sizeof(eband5ms)/sizeof(eband5ms[0])-1; @@ -200,20 +200,16 @@ static void compute_allocation_table(CELTMode *mode, int res) mode->allocVectors = allocVectors; return; } - /* If not the standard mode, interpolate */ - /* Find the number of critical bands supported by our sampling rate */ - for (nBark=1;nBark= mode->Fs) - break; - /* Compute per-codec-band allocation from per-critical-band matrix */ for (i=0;i