Skip to content

Commit

Permalink
Merge pull request #711 from pbodilis/main
Browse files Browse the repository at this point in the history
[code] fix endianness issue while updating srtp keys
  • Loading branch information
pabuhler committed May 3, 2024
2 parents ed16d72 + 75d2a8c commit 0c002e7
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0c002e7

Please sign in to comment.