From 98b62e397b3a27d7ddc0d50d5f8ac4d4f3af54a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Slowack?= Date: Wed, 15 Jun 2016 11:19:43 +0200 Subject: [PATCH] rtph265: fix NAL unit type parsing and SPS/PPS/VPS detection Fixes sps/pps/vps insertion via the config-interval property. https://bugzilla.gnome.org//show_bug.cgi?id=767680 --- gst/rtp/gstrtph265pay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c index 3dc9b8f..4d5da13 100644 --- a/gst/rtp/gstrtph265pay.c +++ b/gst/rtp/gstrtph265pay.c @@ -822,7 +822,7 @@ gst_rtp_h265_pay_decode_nal (GstRtpH265Pay * payloader, GST_DEBUG ("NAL payload len=%u", size); header = data[0]; - type = header & 0x3f; + type = (header & 0x7e) >> 1; /* We record the timestamp of the last SPS/PPS so * that we can insert them at regular intervals and when needed. */ -- 2.7.4