mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
rtph261depay: Enabled header extension aggregation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5378>
This commit is contained in:
parent
2834973d55
commit
ae5bdaa7e1
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,7 @@ gst_rtp_h261_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
|
||||||
if (payload_len < header_len + 1) {
|
if (payload_len < header_len + 1) {
|
||||||
/* Must have at least one byte payload */
|
/* Must have at least one byte payload */
|
||||||
GST_WARNING_OBJECT (depay, "Dropping packet with invalid payload length");
|
GST_WARNING_OBJECT (depay, "Dropping packet with invalid payload length");
|
||||||
|
gst_rtp_base_depayload_dropped (depayload);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,4 +287,7 @@ gst_rtp_h261_depay_init (GstRtpH261Depay * depay)
|
||||||
{
|
{
|
||||||
depay->adapter = gst_adapter_new ();
|
depay->adapter = gst_adapter_new ();
|
||||||
depay->leftover = NO_LEFTOVER;
|
depay->leftover = NO_LEFTOVER;
|
||||||
|
|
||||||
|
gst_rtp_base_depayload_set_aggregate_hdrext_enabled (GST_RTP_BASE_DEPAYLOAD
|
||||||
|
(depay), TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue