Skip to content
Snippets Groups Projects
Commit 471df8f5 authored by Mark Spencer's avatar Mark Spencer
Browse files

Be sure to do ntohl before considering extended field

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9f1562a5
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment