From 982f164579b226a24167d35010ff95e4b1c3716f Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:11:15 +0100 Subject: [PATCH] rtcp: use rtcp_rtpfb_gnack_encode() function (#1233) --- src/rtp/rtcp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rtp/rtcp.c b/src/rtp/rtcp.c index 5df18274f..515a03ced 100644 --- a/src/rtp/rtcp.c +++ b/src/rtp/rtcp.c @@ -102,9 +102,7 @@ static int encode_gnack(struct mbuf *mb, void *arg) { struct gnack *fci = arg; - int err = mbuf_write_u16(mb, htons(fci->pid)); - err |= mbuf_write_u16(mb, htons(fci->blp)); - return err; + return rtcp_rtpfb_gnack_encode(mb, fci->pid, fci->blp); }