From 23f3e84ba43efde94aa52c77455ff28662ed2b79 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Mon, 14 Jan 2008 15:03:23 +0000 Subject: fix initialization --- sbc/sbc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbc/sbc.c b/sbc/sbc.c index 8e2aff62..d8385bd8 100644 --- a/sbc/sbc.c +++ b/sbc/sbc.c @@ -705,7 +705,10 @@ static void sbc_encoder_init(struct sbc_encoder_state *state, { memset(&state->X, 0, sizeof(state->X)); state->subbands = frame->subbands; - state->position[0] = state->position[1] = 80; + if(frame->subbands == 8) + state->position[0] = state->position[1] = 72; + else + state->position[0] = state->position[1] = 36; } static inline void _sbc_analyze_four(const int32_t *in, int32_t *out) -- cgit