diff options
author | Mans Rullgard <mans@mansr.com> | 2012-08-05 22:22:10 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-08-13 17:59:21 +0100 |
commit | d752509b7437beefac079021fc5ecbd4e27df6b5 (patch) | |
tree | eaec4c04ead1e7d2faf083c31f0055f627e979ac /avprobe.c | |
parent | 90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |