From 22c1a16dcec42eebb12aad15c6d68a6b1a89db89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 24 Mar 2026 17:49:39 +0100 Subject: [PATCH] spa: audioconvert: benchmark-fmt-ops: initialize `convert` Since c02cdcb5ce98 ("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. --- spa/plugins/audioconvert/benchmark-fmt-ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/benchmark-fmt-ops.c b/spa/plugins/audioconvert/benchmark-fmt-ops.c index 9ea43ec65..e59f1f56b 100644 --- a/spa/plugins/audioconvert/benchmark-fmt-ops.c +++ b/spa/plugins/audioconvert/benchmark-fmt-ops.c @@ -51,9 +51,9 @@ static void run_test1(const char *name, const char *impl, bool in_packed, bool o void *op[n_channels]; struct timespec ts; uint64_t count, t1, t2; - struct convert conv; - - conv.n_channels = n_channels; + struct convert conv = { + .n_channels = n_channels, + }; for (j = 0; j < n_channels; j++) { ip[j] = &samp_in[j * n_samples * 4];