diff --git a/test/sbc/sbc_encoder.py b/test/sbc/sbc_encoder.py index 37624eca4..9efe97b49 100755 --- a/test/sbc/sbc_encoder.py +++ b/test/sbc/sbc_encoder.py @@ -46,11 +46,11 @@ def sbc_frame_analysis(frame, ch, blk, C): for i in range(M2): for k in range(5): - Y[i] += Z[i+k*8] + Y[i] += Z[i+k*M2] for i in range(M): for k in range(M2): - W[i][k] = np.cos((i+0.5)*(k-2)*np.pi/M) + W[i][k] = np.cos((i+0.5)*(k-M/2)*np.pi/M) S[i] += W[i][k] * Y[k] for sb in range(M):