summaryrefslogtreecommitdiff
path: root/gst/rtp
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-09-05 12:56:44 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-09-05 13:56:18 +0100
commit6f9cb1716a008bcc155205ca00df4c3d750d8f67 (patch)
tree0e14bb4dbf00dd9f9019110b14140f81c4900d7c /gst/rtp
parentaae7fcc0b58286c67dc9e7d2ceaf083af91c0d7b (diff)
rtph265depay: fix keyunit detection
https://bugzilla.gnome.org/show_bug.cgi?id=787254
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtph265depay.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph265depay.c b/gst/rtp/gstrtph265depay.c
index d06b2d3c2..dca0added 100644
--- a/gst/rtp/gstrtph265depay.c
+++ b/gst/rtp/gstrtph265depay.c
@@ -928,7 +928,15 @@ gst_rtp_h265_complete_au (GstRtpH265Depay * rtph265depay,
|| ((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_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 *
gst_rtp_h265_depay_handle_nal (GstRtpH265Depay * rtph265depay, GstBuffer * nal,