[pjsip] Crash When Encoding GSM

Dan Rabin dan.rabin.1975 at gmail.com
Wed Oct 21 15:50:53 EDT 2015


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-0002.html>


More information about the pjsip mailing list