aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showcwt.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-07-28 13:15:00 +0200
committerPaul B Mahol <onemda@gmail.com>2023-07-28 14:02:35 +0200
commita7a46aff463ca88ea719dc51a99a334b1aaae145 (patch)
treefa6732a6c3edc366c04f5b81c711e82e5d221b33 /libavfilter/avf_showcwt.c
parent32a2268b6ead00a9f649ac31abf096067dfd2b9d (diff)
downloadffmpeg-a7a46aff463ca88ea719dc51a99a334b1aaae145.tar.gz
avfilter/avf_showcwt: remove excessive operations
Diffstat (limited to 'libavfilter/avf_showcwt.c')
-rw-r--r--libavfilter/avf_showcwt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/avf_showcwt.c b/libavfilter/avf_showcwt.c
index 49c0203539..1451bfb1e0 100644
--- a/libavfilter/avf_showcwt.c
+++ b/libavfilter/avf_showcwt.c
@@ -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);
}