[core] RTP: remove redundant condition when checking payload type of incoming packets.
This commit is contained in:
parent
813aac3e0f
commit
b90ca11659
|
@ -6110,7 +6110,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
|
|||
rtp_session->last_rtp_hdr = rtp_session->recv_msg.header;
|
||||
|
||||
|
||||
if (bytes && !rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA] && !rtp_session->flags[SWITCH_RTP_FLAG_UDPTL] &&
|
||||
if (!rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA] && !rtp_session->flags[SWITCH_RTP_FLAG_UDPTL] &&
|
||||
rtp_session->last_rtp_hdr.pt != 13 &&
|
||||
rtp_session->last_rtp_hdr.pt != rtp_session->recv_te &&
|
||||
rtp_session->last_rtp_hdr.pt != rtp_session->cng_pt) {
|
||||
|
|
Loading…
Reference in New Issue