[Asterisk-video] libh324m on 64-bit

rossicar at dei.unipd.it rossicar at dei.unipd.it
Wed Oct 1 13:47:58 CDT 2008


Thanks a lot for this patch!
I'll try this soon, hoping it works!

Carlo

Quoting "Klaus Keppler" <keppler at emtex.de>:

> There's also a small trick.
> Sorry for not having told this until now, I'm just working with
> all these libs for a few days and wanted to "collect" patches
> (and learn more, of course) before publishing them.
>
> Just apply this simple patch within the AMR source directory
> (/usr/src/asterisk-.../codecs/amr):
> ---cut---
> --- typedef.h.orig      2004-03-05 00:00:02.000000000 +0100
> +++ typedef.h   2008-09-24 19:34:49.813538000 +0200
> @@ -12,10 +12,12 @@
>   #ifndef _TYPEDEF_H
>   #define _TYPEDEF_H
>
> -typedef char Word8;
> -typedef unsigned char UWord8;
> -typedef short Word16;
> -typedef long Word32;
> +#include <stdint.h>
> +
> +typedef int8_t Word8;
> +typedef uint8_t UWord8;
> +typedef int16_t Word16;
> +typedef int32_t Word32;
>   typedef float Float32;
>   typedef double Float64;
> ---cut---
>
> I wasn't able to test if the codec *works* with these changes
> (though they should just preserve the original behaviour), but
> at least for me, it compiles well and Asterisk doesn't crash
> any more when starting. :)
>
> Best regards,
>
>     klaus
>
>
> rossicar at dei.unipd.it schrieb:
>> The real problem are 3GPP'S AMR libraries.
>> When compiled on a x64 system, they generates a lot of Segmentation Fault
>> on Asterisk, in particular if U use octet aligned mode.
>> The only solution I have found it to install a x86 distribution and
>> reinstall both Sterisk and libh324m! :-(
>>
>>
>>> _______________________________________________
>>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>>
>>> asterisk-video mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>    http://lists.digium.com/mailman/listinfo/asterisk-video
>>>
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>> _______________________________________________
>> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>>
>> asterisk-video mailing list
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-video
>>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-video mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-video
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the asterisk-video mailing list