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

@@ -396,7 +396,7 @@ int lc3_encode(struct lc3_encoder *encoder, enum lc3_pcm_format fmt,
/* --- Processing --- */
struct side_data side;
uint16_t xq[LC3_NE(encoder->dt, encoder->sr)];
uint16_t xq[LC3_MAX_NE];
load[fmt](encoder, pcm, stride);