fmt-ops: allocate shaper memory dynamically

It is based on the number of channels so allocate it dynamically.
This commit is contained in:
Wim Taymans 2025-10-24 12:46:38 +02:00
parent d18670d7bb
commit f7c3d37969
2 changed files with 5 additions and 3 deletions

View file

@ -236,7 +236,7 @@ struct convert {
uint32_t noise_size;
const float *ns;
uint32_t n_ns;
struct shaper shaper[64];
struct shaper *shaper;
void (*update_noise) (struct convert *conv, float *noise, uint32_t n_samples);
void (*process) (struct convert *conv, void * SPA_RESTRICT dst[], const void * SPA_RESTRICT src[],