diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-21 19:24:05 +0300 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-02-21 19:24:05 +0300 |
commit | f1b267ddf7ca1b84abf7bdc97b736715d23fd89f (patch) | |
tree | bdda4859bd9b24b2354fe8e751a44ffd23643ca8 | |
parent | dd3475682e48a1364dc1738405f8ec7767a78848 (diff) |
Avoid using log2, it is not available everywhere.
Should fix compilation on FreeBSD.
Originally committed as revision 21942 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,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) (log2(val)) / 10; + index = (int) (log(val)/log(2)) / 10; index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) -1); val /= pow(2, index*10); prefix_string = binary_unit_prefixes[index]; |