filter-graph: use SPA_MAX instead of fmaxf

fmaxf is a function unless compiled with special flags.
This commit is contained in:
Wim Taymans 2024-12-04 16:40:53 +01:00
parent dc76254d03
commit f3a7f2c28e

View file

@ -2093,7 +2093,7 @@ static void max_run(void * Instance, unsigned long SampleCount)
if (in1 != NULL && in2 != NULL) { if (in1 != NULL && in2 != NULL) {
for (n = 0; n < SampleCount; n++) for (n = 0; n < SampleCount; n++)
out[n] = fmaxf(in1[n], in2[n]); out[n] = SPA_MAX(in1[n], in2[n]);
} else if (in1 != NULL) { } else if (in1 != NULL) {
for (n = 0; n < SampleCount; n++) for (n = 0; n < SampleCount; n++)
out[n] = in1[n]; out[n] = in1[n];