diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-09 12:59:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-09 13:02:08 +0200 |
commit | b027156b19c2e9a03f79980abbe4a9c422f6d6d6 (patch) | |
tree | 67c78b706275242dae1bb27e5b1b3b81d443d6b1 /ffprobe.c | |
parent | 363d302ea30fcdeb230e77eae7fa5a876d3d8711 (diff) | |
download | ffmpeg-b027156b19c2e9a03f79980abbe4a9c422f6d6d6.tar.gz |
ffprobe: use exp2 instead of pow(2, ...)
Diffstat (limited to 'ffprobe.c')
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -124,7 +124,7 @@ static char *value_string(char *buf, int buf_size, struct unit_value uv) if (uv.unit == unit_byte_str && use_byte_value_binary_prefix) { index = (long long int) (log2(vald)) / 10; index = av_clip(index, 0, FF_ARRAY_ELEMS(binary_unit_prefixes) - 1); - vald /= pow(2, index * 10); + vald /= exp2(index * 10); prefix_string = binary_unit_prefixes[index]; } else { index = (long long int) (log10(vald)) / 3; |