From dc76254d0380fbc7e673977582c2213f967f8500 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 4 Dec 2024 16:38:16 +0100 Subject: [PATCH] filter-graph: fix compilation --- spa/plugins/filter-graph/builtin_plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spa/plugins/filter-graph/builtin_plugin.c b/spa/plugins/filter-graph/builtin_plugin.c index 966f87e24..6e97cf413 100644 --- a/spa/plugins/filter-graph/builtin_plugin.c +++ b/spa/plugins/filter-graph/builtin_plugin.c @@ -2092,16 +2092,16 @@ static void max_run(void * Instance, unsigned long SampleCount) return; if (in1 != NULL && in2 != NULL) { - for (n = 0; n < SampleCount; n++) { + for (n = 0; n < SampleCount; n++) out[n] = fmaxf(in1[n], in2[n]); } else if (in1 != NULL) { - for (n = 0; n < SampleCount; n++) { + for (n = 0; n < SampleCount; n++) out[n] = in1[n]; } else if (in2 != NULL) { - for (n = 0; n < SampleCount; n++) { + for (n = 0; n < SampleCount; n++) out[n] = in2[n]; } else { - for (n = 0; n < SampleCount; n++) { + for (n = 0; n < SampleCount; n++) out[n] = 0.0f; } }