aboutsummaryrefslogtreecommitdiffstats
path: root/avprobe.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-08-05 22:22:10 +0100
committerMans Rullgard <mans@mansr.com>2012-08-13 17:59:21 +0100
commitd752509b7437beefac079021fc5ecbd4e27df6b5 (patch)
treeeaec4c04ead1e7d2faf083c31f0055f627e979ac /avprobe.c
parent90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b (diff)
downloadffmpeg-d752509b7437beefac079021fc5ecbd4e27df6b5.tar.gz
Use log2(x) instead of log(x) / log(2)
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'avprobe.c')
-rw-r--r--avprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avprobe.c b/avprobe.c
index 28746bf18e..8107e54531 100644
--- a/avprobe.c
+++ b/avprobe.c
@@ -468,7 +468,7 @@ static char *value_string(char *buf, int buf_size, double val, const char *unit)
int index;
if (unit == unit_byte_str && use_byte_value_binary_prefix) {
- index = (int) (log(val)/log(2)) / 10;
+ index = (int) log2(val) / 10;
index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) - 1);
val /= pow(2, index * 10);
prefix_string = binary_unit_prefixes[index];