diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-08-20 13:06:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-08-20 13:06:17 +0000 |
commit | f9f392a5107ce77f162db5855dc68103eff93bd9 (patch) | |
tree | a0fff6c36e67527c9848eef6f897cc967170e9b4 | |
parent | e5569c6588593c21c8af1cb59f64138182898296 (diff) |
Ticket #952: Error in calculating RTP packet extended header (thanks Thomas Falk for the patch)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2904 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia/rtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/rtp.c b/pjmedia/src/pjmedia/rtp.c index 1583803b..f2a66cd3 100644 --- a/pjmedia/src/pjmedia/rtp.c +++ b/pjmedia/src/pjmedia/rtp.c @@ -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 */ |