mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
rtph265depay: fix keyunit detection
https://bugzilla.gnome.org/show_bug.cgi?id=787254
This commit is contained in:
parent
aae7fcc0b5
commit
6f9cb1716a
1 changed files with 9 additions and 1 deletions
|
@ -928,7 +928,15 @@ gst_rtp_h265_complete_au (GstRtpH265Depay * rtph265depay,
|
||||||
|| ((nt) == GST_H265_NAL_SLICE_IDR_N_LP)\
|
|| ((nt) == GST_H265_NAL_SLICE_IDR_N_LP)\
|
||||||
|| ((nt) == GST_H265_NAL_SLICE_CRA_NUT) )
|
|| ((nt) == GST_H265_NAL_SLICE_CRA_NUT) )
|
||||||
|
|
||||||
#define NAL_TYPE_IS_KEY(nt) (NAL_TYPE_IS_PARAMETER_SET(nt) || NAL_TYPE_IS_CODED_SLICE_SEGMENT(nt))
|
/* Intra random access point */
|
||||||
|
#define NAL_TYPE_IS_IRAP(nt) (((nt) == GST_H265_NAL_SLICE_BLA_W_LP) \
|
||||||
|
|| ((nt) == GST_H265_NAL_SLICE_BLA_W_RADL) \
|
||||||
|
|| ((nt) == GST_H265_NAL_SLICE_BLA_N_LP) \
|
||||||
|
|| ((nt) == GST_H265_NAL_SLICE_IDR_W_RADL) \
|
||||||
|
|| ((nt) == GST_H265_NAL_SLICE_IDR_N_LP) \
|
||||||
|
|| ((nt) == GST_H265_NAL_SLICE_CRA_NUT))
|
||||||
|
|
||||||
|
#define NAL_TYPE_IS_KEY(nt) (NAL_TYPE_IS_PARAMETER_SET(nt) || NAL_TYPE_IS_IRAP(nt))
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
gst_rtp_h265_depay_handle_nal (GstRtpH265Depay * rtph265depay, GstBuffer * nal,
|
gst_rtp_h265_depay_handle_nal (GstRtpH265Depay * rtph265depay, GstBuffer * nal,
|
||||||
|
|
Loading…
Reference in a new issue