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; } }