[FFmpeg-devel] FreeBSD patch - Log2() not available on freebsd
Brice Leroy
bbrriiccee
Fri May 16 21:27:38 CEST 2008
Hello M?ns,
I'm sorry, I would not be offensive. It's just that this way it's
work fine for me.
Sorry for that.
On May 16, 2008, at 12:24 PM, M?ns Rullg?rd wrote:
> Brice Leroy <bbrriiccee at gmail.com> writes:
>
>> 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)
>
> Such workarounds do not belong in individual codec source files.
>
>> @@ -36,6 +36,11 @@
>>
>> #define ZMBV_BLOCK 16
>>
>> +#ifdef __FreeBSD__
>
> Wrong. There should be an explicit test for the required function.
> It may be missing on other systems as well, and it may (hopefully) be
> added in a future FreeBSD version.
>
>> +#define log2(x) (log(x) / M_LN2)
>
> Maybe an inline function would be better. I don't know.
>
> --
> M?ns Rullg?rd
> mans at mansr.com
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list