summaryrefslogtreecommitdiff
path: root/avprobe.c
diff options
context:
space:
mode:
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];