Ticket #952: Error in calculating RTP packet extended header (thanks Thomas Falk for the patch)
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2904 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
0fd63e81dc
commit
3d2eaed29c
|
@ -170,7 +170,7 @@ PJ_DEF(pj_status_t) pjmedia_rtp_decode_rtp( pjmedia_rtp_session *ses,
|
|||
if ((*hdr)->x) {
|
||||
pjmedia_rtp_ext_hdr *ext = (pjmedia_rtp_ext_hdr*)
|
||||
(((pj_uint8_t*)pkt) + offset);
|
||||
offset += (pj_ntohs(ext->length) * sizeof(pj_uint32_t));
|
||||
offset += ((pj_ntohs(ext->length)+1) * sizeof(pj_uint32_t));
|
||||
}
|
||||
|
||||
/* Check that offset is less than packet size */
|
||||
|
|
Loading…
Reference in New Issue