mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
h264depay: unmap on empty packet
This commit is contained in:
parent
d65de434f5
commit
745210e792
1 changed files with 7 additions and 1 deletions
|
@ -684,7 +684,7 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
||||||
GST_DEBUG_OBJECT (rtph264depay, "receiving %d bytes", payload_len);
|
GST_DEBUG_OBJECT (rtph264depay, "receiving %d bytes", payload_len);
|
||||||
|
|
||||||
if (payload_len == 0)
|
if (payload_len == 0)
|
||||||
return NULL;
|
goto empty_packet;
|
||||||
|
|
||||||
/* +---------------+
|
/* +---------------+
|
||||||
* |0|1|2|3|4|5|6|7|
|
* |0|1|2|3|4|5|6|7|
|
||||||
|
@ -899,6 +899,12 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
||||||
return outbuf;
|
return outbuf;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
empty_packet:
|
||||||
|
{
|
||||||
|
GST_DEBUG_OBJECT (rtph264depay, "empty packet");
|
||||||
|
gst_rtp_buffer_unmap (&rtp);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
undefined_type:
|
undefined_type:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_WARNING (rtph264depay, STREAM, DECODE,
|
GST_ELEMENT_WARNING (rtph264depay, STREAM, DECODE,
|
||||||
|
|
Loading…
Reference in a new issue