]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] RTP: remove redundant condition when checking payload type of incoming packets.
authorDragos Oancea <dragos@signalwire.com>
Fri, 24 Sep 2021 20:38:09 +0000 (20:38 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:57 +0000 (22:00 +0300)
src/switch_rtp.c

index cac610b203e110ed4bf500444739ae649f6a1739..02b79362e7970a093d7b0a8c5a07863c15f0672d 100644 (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) {