mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 11:24:17 +00:00
avfilter/avf_showcwt: remove excessive operations
This commit is contained in:
parent
32a2268b6e
commit
a7a46aff46
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user