Voice is bad when the received RTP packet include extension header.

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

 



I found that voice was bad when RTP header included extension.
 Fix this bug as the below:
  
 file: rtp.c 
 line:171
  
 if ((*hdr)->x) {
 pjmedia_rtp_ext_hdr *ext = (pjmedia_rtp_ext_hdr*) 
        (((pj_uint8_t*)pkt) + offset);
 offset +=4;    // insert this line, must add the length of the extension header itself.
 offset += (pj_ntohs(ext->length) * sizeof(pj_uint32_t));
 }
 

  Greg Cheng
  2009-10-29

  
 
 ??????????????   
 ???www.vanceinfo.com
 ???cheng_haisheng at vanceinfo.com
 ???025-52821690
 ???13776606316  18951678207
 ???210012
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091029/f54c70fc/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