From 88b1b07cce87a948d561ae65af68f13bad462cc3 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 30 Nov 2024 15:10:47 +0100 Subject: [PATCH] rtp: use rtp_pt_is_rtcp() for RTCP demultiplexing (#1221) --- src/rtp/rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtp/rtp.c b/src/rtp/rtp.c index e889f86c8..d84d043cf 100644 --- a/src/rtp/rtp.c +++ b/src/rtp/rtp.c @@ -199,7 +199,7 @@ static void udp_recv_handler(const struct sa *src, struct mbuf *mb, void *arg) pt = mbuf_buf(mb)[1] & 0x7f; - if (64 <= pt && pt <= 95) { + if (rtp_pt_is_rtcp(pt)) { rtcp_recv_handler(src, mb, arg); return; }