[Asterisk-video] AMR codec work for x86_64 system has error

Sergey Tamkovich serg at voipsolutions.ru
Mon Dec 29 14:25:42 CST 2008


Ethan Liu пишет:
> Hi,
>
> I already fixed this issue.Just exchange "long" type to "int" type for
> "typedef.h",but I still worry have another *compatibility issue.
> *

Use int64_t for compatable/portable code.

> **
> Ethan Liu
>> Hello all,
>>
>> I compile amr code(26104-700_ANSI_C_source_code.zip) for asterisk by
>> x86_64 system is no problem.Now,I load codec_amr.so have "Segmentation
>> fault" error when I configure the AMR codec to use octed aligned mode
>> add this to codecs.conf [amr] octet-aligned=1.
>>
>> I tried the same code by x86 system is fine.So I followed debug info and
>> add ast_log sentence for codec_amr.c.I find out the
>> "Decoder_Interface_Decode" Function(this function in interf_dec.c )
>> produced "Segmentation fault" error.
>>
>> I don't know that if 26104-700_ANSI_C_source_code.zip can't use for
>> x86_64 system.
>>
>> Any comments will be much appreciated.
>>
>> Ethan Liu
>>
>>
>>
>>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> --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




More information about the asterisk-video mailing list