[farsight2/master] rtcpfilter: Reduce the packet size when reducing the packet

Olivier Crête olivier.crete at collabora.co.uk
Sun Jan 3 17:16:12 PST 2010


---
 gst/rtcpfilter/fs-rtcp-filter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gst/rtcpfilter/fs-rtcp-filter.c b/gst/rtcpfilter/fs-rtcp-filter.c
index 1f6ed04..5fb6100 100644
--- a/gst/rtcpfilter/fs-rtcp-filter.c
+++ b/gst/rtcpfilter/fs-rtcp-filter.c
@@ -226,6 +226,8 @@ fs_rtcp_filter_transform_ip (GstBaseTransform *transform, GstBuffer *buf)
             memmove (GST_BUFFER_DATA (buf) + packet.offset + 8,
                 GST_BUFFER_DATA (buf) + nextpacket.offset,
                 GST_BUFFER_SIZE (buf) - nextpacket.offset);
+            GST_BUFFER_SIZE (buf) -= nextpacket.offset - packet.offset - 8;
+
             if (!gst_rtcp_buffer_get_first_packet (buf, &packet))
               break;
           }
-- 
1.5.6.5




More information about the farsight-commits mailing list