From 013894ac339e8a70d41e94f2c2322e86a5ad9551 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Fri, 24 Sep 2021 20:38:09 +0000 Subject: [PATCH] [core] RTP: remove redundant condition when checking payload type of incoming packets. --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index cac610b203..02b79362e7 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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) {