fix: Remove VLA to support compilation with MSVC

This commit is contained in:
Antoine Soulier
2023-04-28 10:49:29 -07:00
parent 422d93b82c
commit 44ea886c9e
9 changed files with 42 additions and 23 deletions

View File

@@ -51,7 +51,7 @@ LC3_HOT static int estimate_gain(
int nbits_budget, float nbits_off, int g_off, bool *reset_off)
{
int ne = LC3_NE(dt, sr) >> 2;
int e[ne];
int e[LC3_MAX_NE];
/* --- Energy (dB) by 4 MDCT blocks --- */