diff --git a/libobs/obs-source.c b/libobs/obs-source.c index 42465ef92d09e099ccf7e51d0eea182e056668ab..d8b77ac27c997d5aa34abd9400eab35b40ac3e89 100644 --- a/libobs/obs-source.c +++ b/libobs/obs-source.c @@ -655,7 +655,7 @@ static void calc_volume_levels(struct obs_source *source, float *array, float val_pow2 = val * val; sum_val += val_pow2; - max_val = fmaxf(max_val, val_pow2); + max_val = (max_val > val_pow2) ? max_val : val_pow2; } /*