[FFmpeg-cvslog] ffprobe: use exp2 instead of pow(2, ...)

Michael Niedermayer git at videolan.org
Sun Sep 9 13:07:43 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep  9 12:59:11 2012 +0200| [b027156b19c2e9a03f79980abbe4a9c422f6d6d6] | committer: Michael Niedermayer

ffprobe: use exp2 instead of pow(2, ...)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b027156b19c2e9a03f79980abbe4a9c422f6d6d6
---

 ffprobe.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffprobe.c b/ffprobe.c
index 5f2132d..754475e 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -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;



More information about the ffmpeg-cvslog mailing list