libobs: Replace fmaxf with inline comparison.

This replaces the call to fmaxf with the equivalent inline comparison
which is a bit faster (at least on linux).
master
fryshorts 2014-11-16 22:05:28 +01:00
parent f76ee956c9
commit ab0c2cf431
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/*