mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
filter-graph: use SPA_MAX instead of fmaxf
fmaxf is a function unless compiled with special flags.
This commit is contained in:
parent
dc76254d03
commit
f3a7f2c28e
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue