Skip to content
Snippets Groups Projects
Commit d9c5e896 authored by Grzegorz Sluja's avatar Grzegorz Sluja
Browse files

Revert "Sync SSRC of RTCP and RTP before encryption"

This reverts commit 0f97e870.
parent 2651d69a
Branches
No related tags found
No related merge requests found
......@@ -504,12 +504,6 @@ static int ast_srtp_protect(struct ast_srtp *srtp, void **buf, int *len, int rtc
memcpy(localbuf, *buf, *len);
if(rtcp){
// align ssrc with length of 32bits.
memcpy(localbuf+4, srtp->buf+8, 4);
memcpy(srtp->rtcpbuf+4, srtp->buf+8, 4);
}
if ((res = rtcp ? srtp_protect_rtcp(srtp->session, localbuf, len) : srtp_protect(srtp->session, localbuf, len)) != err_status_ok && res != err_status_replay_fail) {
ast_log(LOG_WARNING, "SRTP protect: %s\n", srtp_errstr(res));
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment