summaryrefslogtreecommitdiffstats
path: root/sbc/sbc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbc/sbc.c')
-rw-r--r--sbc/sbc.c5
1 files changed, 4 insertions, 1 deletions
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)