[FFmpeg-devel] FreeBSD patch - Log2() not available on freebsd

Brice Leroy bbrriiccee
Fri May 16 21:04:17 CEST 2008


Hello,

  On FreeBsd log2() is not availble. This is a patch to define a  
temporary fake log2()

Index: libavcodec/zmbvenc.c
===================================================================
--- libavcodec/zmbvenc.c	(revision 13183)
+++ libavcodec/zmbvenc.c	(working copy)
@@ -36,6 +36,11 @@

  #define ZMBV_BLOCK 16

+#ifdef __FreeBSD__
+#define log2(x)        (log(x) / M_LN2)
+#endif /* __FreeBSD__ */
+
+
  /**
   * Encoder context
   */


Bye

Brice

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zmbvenc.c.freebsd_patch
Type: application/octet-stream
Size: 346 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080516/d3f2f059/attachment.obj>
-------------- next part --------------




More information about the ffmpeg-devel mailing list