OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd34756
)
Avoid using log2, it is not available everywhere.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 21 Feb 2010 16:24:05 +0000
(16:24 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 21 Feb 2010 16:24:05 +0000
(16:24 +0000)
Should fix compilation on FreeBSD.
Originally committed as revision 21942 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffprobe.c
patch
|
blob
|
history
diff --git
a/ffprobe.c
b/ffprobe.c
index
47dad44
..
9a5951a
100644
(file)
--- a/
ffprobe.c
+++ b/
ffprobe.c
@@
-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) (log
2(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];