Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[code] fix endianness issue while updating srtp keys #711

Merged
merged 3 commits into from
May 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions srtp/srtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ static bool update_template_stream_cb(srtp_stream_t stream, void *raw_data)
old_rtcp_rdb = stream->rtcp_rdb;

/* remove stream */
data->status = srtp_stream_remove(session, ssrc);
data->status = srtp_stream_remove(session, ntohl(ssrc));
if (data->status) {
return false;
}
Expand Down Expand Up @@ -3247,7 +3247,7 @@ static srtp_err_status_t stream_update(srtp_t session,
old_index = stream->rtp_rdbx.index;
old_rtcp_rdb = stream->rtcp_rdb;

status = srtp_stream_remove(session, htonl(policy->ssrc.value));
status = srtp_stream_remove(session, policy->ssrc.value);
if (status) {
return status;
}
Expand Down
Loading