Browse Source

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
tags/v0.6
Reimar Döffinger 15 years ago
parent
commit
f1b267ddf7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ffprobe.c

+ 1
- 1
ffprobe.c View File

@@ -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];


Loading…
Cancel
Save