3rd-party/liblc3codec: fix encoder crash for 8_1

This commit is contained in:
Matthias Ringwald 2022-03-08 18:13:38 +01:00
parent f0f51f7de4
commit d65b03f501

View File

@ -109,7 +109,7 @@ void SpectralNoiseShaping::run(const double* const X, const double* E_B, bool F_
E_B_patched[i*2+0] = E_B[i];
E_B_patched[i*2+1] = E_B[i];
}
for (uint8_t i=0; i < lc3Config.N_b; i++)
for (uint8_t i=0; i < lc3Config.N_b - n2; i++)
{
E_B_patched[2*n2+i] = E_B[n2+i];
}