Skip to content

Commit 72c7541

Browse files
authored
Merge pull request #491 from lgrahl/patch-1
Fix two-byte RTP header extension encryption
2 parents 90b3124 + 5529951 commit 72c7541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

srtp/srtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ static srtp_err_status_t srtp_process_header_encryption(
14231423
xtn_hdr_data++;
14241424
}
14251425
}
1426-
} else if ((ntohs(xtn_hdr->profile_specific) & 0x1fff) == 0x100) {
1426+
} else if ((ntohs(xtn_hdr->profile_specific) & 0xfff0) == 0x1000) {
14271427
/* RFC 5285, section 4.3. Two-Byte Header */
14281428
while (xtn_hdr_data + 1 < xtn_hdr_end) {
14291429
uint8_t xid = *xtn_hdr_data;

0 commit comments

Comments
 (0)