avfilter/avf_showcwt: remove excessive operations

This commit is contained in:
Paul B Mahol 2023-07-28 13:15:00 +02:00
parent 32a2268b6e
commit a7a46aff46
1 changed files with 1 additions and 3 deletions

View File

@ -280,9 +280,7 @@ static void frequency_band(float *frequency_band,
static float remap_log(float value, float log_factor)
{
float sign = (0 < value) - (value < 0);
value = logf(value * sign) * log_factor;
value = logf(value) * log_factor;
return 1.f - av_clipf(value, 0.f, 1.f);
}