mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-26 07:58:03 -04:00
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:
parent
bc87bc8588
commit
39f4cbfc98
1 changed files with 3 additions and 3 deletions
|
|
@ -45,9 +45,9 @@ static void run_test(const char *name,
|
||||||
void *tp[N_CHANNELS];
|
void *tp[N_CHANNELS];
|
||||||
int i, j;
|
int i, j;
|
||||||
const uint8_t *in8 = in, *out8 = out;
|
const uint8_t *in8 = in, *out8 = out;
|
||||||
struct convert conv;
|
struct convert conv = {
|
||||||
|
.n_channels = N_CHANNELS,
|
||||||
conv.n_channels = N_CHANNELS;
|
};
|
||||||
|
|
||||||
for (j = 0; j < N_SAMPLES; j++) {
|
for (j = 0; j < N_SAMPLES; j++) {
|
||||||
memcpy(&samp_in[j * in_size], &in8[(j % n_samples) * in_size], in_size);
|
memcpy(&samp_in[j * in_size], &in8[(j % n_samples) * in_size], in_size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue