mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
rtph264depay: Forward the marker bit as buffer flag
We have a buffer flag to represent the marker bit (when present). Forward this bit by setting the buffer flag accordingly.
This commit is contained in:
parent
13278fbcf5
commit
e4f38c986e
1 changed files with 5 additions and 2 deletions
|
@ -944,6 +944,9 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal,
|
||||||
else
|
else
|
||||||
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
|
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
|
|
||||||
|
if (marker)
|
||||||
|
GST_BUFFER_FLAG_SET (outbuf, GST_BUFFER_FLAG_MARKER);
|
||||||
|
|
||||||
gst_rtp_base_depayload_push (depayload, outbuf);
|
gst_rtp_base_depayload_push (depayload, outbuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1040,8 +1043,8 @@ gst_rtp_h264_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
|
||||||
/* at least one byte header with type */
|
/* at least one byte header with type */
|
||||||
header_len = 1;
|
header_len = 1;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (rtph264depay, "NRI %d, Type %d", nal_ref_idc,
|
GST_DEBUG_OBJECT (rtph264depay, "NRI %d, Type %d %s", nal_ref_idc,
|
||||||
nal_unit_type);
|
nal_unit_type, marker ? "marker" : "");
|
||||||
|
|
||||||
/* If FU unit was being processed, but the current nal is of a different
|
/* If FU unit was being processed, but the current nal is of a different
|
||||||
* type. Assume that the remote payloader is buggy (didn't set the end bit
|
* type. Assume that the remote payloader is buggy (didn't set the end bit
|
||||||
|
|
Loading…
Reference in a new issue