From db19b6be84c51cc14cbafc676677e9d5a541e2ef Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" <114750+alfredh@users.noreply.github.com> Date: Sat, 14 Dec 2024 11:16:31 +0100 Subject: [PATCH] rtcp: use rtcp_rtpfb_gnack_encode() function --- 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); }