From f9f392a5107ce77f162db5855dc68103eff93bd9 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 20 Aug 2009 13:06:17 +0000 Subject: 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 --- pjmedia/src/pjmedia/rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjmedia/src') 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 */ -- cgit v1.2.3