aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrtp.c2
1 files changed, 1 insertions, 1 deletions
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) {