From 22b635dce9a991053e720761bbecd1028969c15e Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 31 Aug 2004 14:03:18 +0000 Subject: Be sure to do ntohl before considering extended field git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3691 f38db490-d61c-443f-a65b-d21fe96a405b --- rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtp.c') diff --git a/rtp.c b/rtp.c index 44680683e..07c022e23 100755 --- a/rtp.c +++ b/rtp.c @@ -449,7 +449,7 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) if (ext) { /* RTP Extension present */ hdrlen += 4; - hdrlen += (rtpheader[3] & 0xffff) << 2; + hdrlen += (ntohl(rtpheader[3]) & 0xffff) << 2; } if (res < hdrlen) { -- cgit v1.2.3