mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
cast, bit-field will always be within the boundaries of (switch_payload_t)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3717 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
59e4d67712
commit
5b6c0b97b6
@ -897,7 +897,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
rtp_session->recv_msg.header.pt = 97;
|
||||
}
|
||||
rtp_session->rseq = ntohs(rtp_session->recv_msg.header.seq);
|
||||
rtp_session->rpayload = rtp_session->recv_msg.header.pt;
|
||||
rtp_session->rpayload = (switch_payload_t)rtp_session->recv_msg.header.pt;
|
||||
} else {
|
||||
if (rtp_session->recv_msg.header.version == 0 && rtp_session->ice_user) {
|
||||
handle_ice(rtp_session, (void *) &rtp_session->recv_msg, bytes);
|
||||
@ -945,7 +945,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
|
||||
}
|
||||
|
||||
rtp_session->last_read = switch_time_now();
|
||||
*payload_type = rtp_session->recv_msg.header.pt;
|
||||
*payload_type = (switch_payload_t)rtp_session->recv_msg.header.pt;
|
||||
|
||||
|
||||
if (*payload_type == SWITCH_RTP_CNG_PAYLOAD) {
|
||||
@ -1295,7 +1295,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session, void *data, uint32_t data
|
||||
|
||||
if (!rtp_session->mini && switch_test_flag(rtp_session, SWITCH_RTP_FLAG_MINI)) {
|
||||
rtp_session->mini++;
|
||||
rtp_session->rpayload = send_msg->header.pt;
|
||||
rtp_session->rpayload = (switch_payload_t)send_msg->header.pt;
|
||||
rtp_session->rseq = ntohs(send_msg->header.seq);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user