Revision f1b267dd ffprobe.c

View differences:

ffprobe.c
67 67
        int index;
68 68

  
69 69
        if (unit == unit_byte_str && use_byte_value_binary_prefix) {
70
            index = (int) (log2(val)) / 10;
70
            index = (int) (log(val)/log(2)) / 10;
71 71
            index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) -1);
72 72
            val /= pow(2, index*10);
73 73
            prefix_string = binary_unit_prefixes[index];

Also available in: Unified diff