History

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

Reimar Döffinger committed 16 years ago

Commit f1b267d1 parent dd347561 file · +1 −1Browse files

Unified · Split

ffprobe.c+1−1
@@ -67,7 +67,7 @@ static char *value_string(char *buf, int buf_size, double val, const char *unit) · 66 unmodified lines
6767 int index;
6868
6969 if (unit == unit_byte_str && use_byte_value_binary_prefix) {
70− index = (int) (log2(val)) / 10;
70+ index = (int) (log(val)/log(2)) / 10;
7171 index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) -1);
7272 val /= pow(2, index*10);
7373 prefix_string = binary_unit_prefixes[index];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t