[FFmpeg-devel] [PATCH] fix ffprobe compilation

Michael Niedermayer michaelni
Sun Feb 21 16:54:35 CET 2010


On Sun, Feb 21, 2010 at 04:51:10PM +0100, Reimar D?ffinger wrote:
> no need to use log2 here
> Index: ffprobe.c
> ===================================================================
> --- ffprobe.c	(revision 21941)
> +++ ffprobe.c	(working copy)
> @@ -67,7 +67,7 @@
>          int index;
>  
>          if (unit == unit_byte_str && use_byte_value_binary_prefix) {
> -            index = (int) (log2(val)) / 10;
> +            index = (int) (log(val)/log(2)) / 10;

better than a compilation failure so ok

in the long run a libbrokenos that supplies all the missing stuff would
be nice

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100221/efaf3742/attachment.pgp>



More information about the ffmpeg-devel mailing list