summaryrefslogtreecommitdiff
path: root/libavfilter/af_volumedetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_volumedetect.c')
-rw-r--r--libavfilter/af_volumedetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volumedetect.c b/libavfilter/af_volumedetect.c
index 01f24baea0..4815bccf6b 100644
--- a/libavfilter/af_volumedetect.c
+++ b/libavfilter/af_volumedetect.c
@@ -78,7 +78,7 @@ static inline double logdb(uint64_t v)
double d = v / (double)(0x8000 * 0x8000);
if (!v)
return MAX_DB;
- return log(d) * -4.3429448190325182765112891891660508229; /* -10/log(10) */
+ return -log10(d) * 10;
}
static void print_stats(AVFilterContext *ctx)