[gst-plugins-farsight/master] Validate RTP data in RTP Mux
Olivier Crête
olivier.crete at collabora.co.uk
Wed Feb 18 14:05:13 PST 2009
---
gst/rtpmux/gstrtpmux.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 23c06f2..f460085 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -363,6 +363,12 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
+ if (!gst_rtp_buffer_validate (buffer)) {
+ GST_ERROR_OBJECT (rtp_mux, "Invalid RTP buffer");
+ gst_object_unref (rtp_mux);
+ return GST_FLOW_ERROR;
+ }
+
buffer = gst_buffer_make_writable(buffer);
rtp_mux->seqnum++;
--
1.5.6.5
More information about the farsight-commits
mailing list