summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-02-18 17:05:13 -0500
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:56 +0100
commit44b6071bd72cd4596f7275cea8f3105d9832f8ac (patch)
tree98f710f2474fa2a119b484d2212d2125c6d5ae4b
parent4bfd3b456172694d799927319ccd8dca5ad6b8dc (diff)
[MOVED FROM GST-P-FARSIGHT] Validate RTP data in RTP Mux
-rw-r--r--gst/rtpmux/gstrtpmux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 23c06f2a9..f46008519 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++;