spa: audioconvert: test-fmt-ops: initialize convert

Since c02cdcb5ce ("audioconvert: add avx2 optimized s32_to f32d")
`conv_s32_to_f32d_avx2()` reads `convert::cpu_flags`, which was
previously unitiailized, fix that by setting it to 0.
This commit is contained in:
Barnabás Pőcze 2026-03-24 17:31:40 +01:00
parent bc87bc8588
commit 39f4cbfc98

View file

@ -45,9 +45,9 @@ static void run_test(const char *name,
void *tp[N_CHANNELS];
int i, j;
const uint8_t *in8 = in, *out8 = out;
struct convert conv;
conv.n_channels = N_CHANNELS;
struct convert conv = {
.n_channels = N_CHANNELS,
};
for (j = 0; j < N_SAMPLES; j++) {
memcpy(&samp_in[j * in_size], &in8[(j % n_samples) * in_size], in_size);