Crash When Encoding GSM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
I have code that worked with G711 but crash with GSM.
I am using the regular codec frame work and changes only three lines:

pjmedia_codec_info codecs;
    codecs.encoding_name = pj_str("GSM");//pj_str("PCMU") - CHANGE
    codecs.pt = PJMEDIA_RTP_PT_GSM ;//PJMEDIA_RTP_PT_PCMU - CHANGE
    codecs.type = PJMEDIA_TYPE_AUDIO;
    codecs.clock_rate = 8000;
    codecs.channel_cnt = 1;
status = pjmedia_codec_mgr_alloc_codec(codec_mgr, &codecs,&_codec); //OK!!!
For encoding:

pjmedia_codec_encode     (     _codec, &_in_frame,FRAME_SIZE, &_out_frame1);
Here I changed FRAME_SIZE from 160 to 33 and it crash! - no error, simply
crash.

Please advice,
Thanks,
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151021/7400a98c/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux