mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
rtpssrcdemux: drop unexpected RTCP packets
We usually only get SR packets in our chain function but if an invalid packet contains the SR packet after the RR packet, we must not fail but simply ignore the malformed packet. Fixes #581375
This commit is contained in:
parent
179f5bb850
commit
46139253bc
1 changed files with 7 additions and 1 deletions
|
@ -483,7 +483,7 @@ gst_rtp_ssrc_demux_rtcp_chain (GstPad * pad, GstBuffer * buf)
|
||||||
NULL);
|
NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
goto invalid_rtcp;
|
goto unexpected_rtcp;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (demux, "received RTCP of SSRC %08x", ssrc);
|
GST_DEBUG_OBJECT (demux, "received RTCP of SSRC %08x", ssrc);
|
||||||
|
@ -511,6 +511,12 @@ invalid_rtcp:
|
||||||
gst_buffer_unref (buf);
|
gst_buffer_unref (buf);
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
unexpected_rtcp:
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (demux, "dropping unexpected RTCP packet");
|
||||||
|
gst_buffer_unref (buf);
|
||||||
|
return GST_FLOW_OK;
|
||||||
|
}
|
||||||
create_failed:
|
create_failed:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (demux, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (demux, STREAM, DECODE, (NULL),
|
||||||
|
|
Loading…
Reference in a new issue