From a9eda7a5c0e56282a5687fd313250aaf92c210b2 Mon Sep 17 00:00:00 2001 From: AEH <114750+alfredh@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:31:28 +0100 Subject: [PATCH] rtcp: add printing of TWCC packet --- 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: