From 0b19edddcbbf8f26f60f1a2bdd1eebe23578ac68 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 16 Mar 2024 10:58:23 +0100 Subject: [PATCH] rtcp: add printing of TWCC packet (#1084) --- src/rtp/rtcp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/rtp/rtcp.c b/src/rtp/rtcp.c index 17c3d20fb..51142a726 100644 --- a/src/rtp/rtcp.c +++ b/src/rtp/rtcp.c @@ -296,6 +296,21 @@ int rtcp_msg_print(struct re_printf *pf, const struct rtcp_msg *msg) msg->r.fb.fci.gnackv[i].blp); } } + else if (msg->hdr.count == RTCP_RTPFB_TWCC) { + const struct twcc *twcc = msg->r.fb.fci.twccv; + + err |= re_hprintf(pf, + " TWCC" + " base_seq=%u" + " pkt_status_count=%u" + " ref_time=%u" + " fb_pkt_count=%u" + , + twcc->seq, + twcc->count, + twcc->reftime, + twcc->fbcount); + } break; case RTCP_PSFB: