mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
gst/gdp/gstgdpdepay.c: Check the body CRC (if set) when depayloading.
Original commit message from CVS: * gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain): Check the body CRC (if set) when depayloading. Fixes #522401.
This commit is contained in:
parent
a6b0426bfc
commit
41be2b32d0
1 changed files with 13 additions and 0 deletions
|
@ -287,6 +287,12 @@ gst_gdp_depay_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
} else {
|
} else {
|
||||||
goto wrong_type;
|
goto wrong_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!gst_dp_validate_payload (GST_DP_HEADER_LENGTH, this->header,
|
||||||
|
gst_adapter_peek (this->adapter, this->payload_length))) {
|
||||||
|
goto payload_validate_error;
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_GDP_DEPAY_STATE_BUFFER:
|
case GST_GDP_DEPAY_STATE_BUFFER:
|
||||||
|
@ -392,6 +398,13 @@ header_validate_error:
|
||||||
ret = GST_FLOW_ERROR;
|
ret = GST_FLOW_ERROR;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
payload_validate_error:
|
||||||
|
{
|
||||||
|
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
||||||
|
("GDP packet payload does not validate"));
|
||||||
|
ret = GST_FLOW_ERROR;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
wrong_type:
|
wrong_type:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
GST_ELEMENT_ERROR (this, STREAM, DECODE, (NULL),
|
||||||
|
|
Loading…
Reference in a new issue