projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360c8d4
)
rtpmux: Validate RTP data in RTP Mux
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Wed, 18 Feb 2009 22:05:13 +0000
(17:05 -0500)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 16:32:57 +0000
(16:32 +0000)
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index
23c06f2
..
f460085
100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/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++;