Commit fede7d2b authored by reimar's avatar reimar

Avoid using log2, it is not available everywhere.

Should fix compilation on FreeBSD.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21942 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d4f788d8
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment