From c1da65da5e6da3ae80214e4ae820af754a27d1f5 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 Aug 2013 15:42:55 +0200 Subject: [PATCH] rtcpbuffer: calculate FB packet length correctly --- gst-libs/gst/rtp/gstrtcpbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index ec5901ff5c..f1fe689850 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -2054,7 +2054,7 @@ gst_rtcp_packet_fb_set_fci_length (GstRTCPPacket * packet, guint16 wordlen) wordlen += 2; GST_WRITE_UINT16_BE (data, wordlen); - packet->rtcp->map.size += wordlen * 4; + packet->rtcp->map.size = packet->offset + ((wordlen + 1) * 4); return TRUE; } -- 2.34.1