[pjsip] the Distortion problem of VoiceAge G729 integrated in PJSUA

Ricky Wu wuwhere at 163.com
Mon Aug 3 05:05:33 EDT 2009


hi all!
      i integrate VoiceAge G729 in PJSUA. but the decoder is distortion. is there something wrong in 
my setting of G729 codec? 
in gsm_codec_parse :
 while (pkt_size >= 20 && count < *frame_cnt) {
	frames[count].type = PJMEDIA_FRAME_TYPE_AUDIO;
	frames[count].buf = pkt;
	frames[count].size = 20;
	frames[count].timestamp.u64 = ts->u64 + count * 160;
in g729_codec_decode :
   struct g729_data *g729_data = (struct g729_data*) codec->codec_data;

    pj_assert(g729_data != NULL);
    PJ_ASSERT_RETURN(input && output, PJ_EINVAL);

    if (output_buf_len < 160)
	return PJMEDIA_CODEC_EPCMTOOSHORT;

    if (input->size < 10)
	return PJMEDIA_CODEC_EFRMTOOSHORT;

	va_g729a_decoder((unsigned char*)input->buf, (short*)output->buf, 0);

    output->size = 160;
    output->type = PJMEDIA_FRAME_TYPE_AUDIO;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090803/d34f737b/attachment.html>


More information about the pjsip mailing list