[core] RTP: remove redundant condition when checking payload type of incoming packets.

This commit is contained in:
Dragos Oancea 2021-09-24 20:38:09 +00:00 committed by Andrey Volk
parent 813aac3e0f
commit b90ca11659
1 changed files with 1 additions and 1 deletions

View File

@ -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) {