mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
[MOVED FROM GST-P-FARSIGHT] Validate RTP data in RTP Mux
This commit is contained in:
parent
4bfd3b4561
commit
44b6071bd7
1 changed files with 6 additions and 0 deletions
|
@ -363,6 +363,12 @@ gst_rtp_mux_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
|
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);
|
buffer = gst_buffer_make_writable(buffer);
|
||||||
|
|
||||||
rtp_mux->seqnum++;
|
rtp_mux->seqnum++;
|
||||||
|
|
Loading…
Reference in a new issue