From: Dragos Oancea Date: Fri, 24 Sep 2021 20:38:09 +0000 (+0000) Subject: [core] RTP: remove redundant condition when checking payload type of incoming packets. X-Git-Tag: v1.10.7^2~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=013894ac339e8a70d41e94f2c2322e86a5ad9551;p=thirdparty%2Ffreeswitch.git [core] RTP: remove redundant condition when checking payload type of incoming packets. --- 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) {