History

avfilter/avf_showcwt: remove excessive operations

Paul B Mahol committed 3 years ago

Commit a7a46af1 parent 32a22681 file · +1 −3Browse files

Unified · Split

libavfilter/avf_showcwt.c+1−3
@@ -280,9 +280,7 @@ static void frequency_band(float *frequency_band, · 279 unmodified lines
280 280
281static float remap_log(float value, float log_factor)281static float remap_log(float value, float log_factor)
282{282{
283 float sign = (0 < value) - (value < 0);283 value = logf(value) * log_factor;
284
285 value = logf(value * sign) * log_factor;
286 284
287 return 1.f - av_clipf(value, 0.f, 1.f);285 return 1.f - av_clipf(value, 0.f, 1.f);
288}286}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t