summaryrefslogtreecommitdiff
path: root/gst/rtp
diff options
context:
space:
mode:
authorJürgen Slowack <jurgen.slowack@barco.com>2016-06-15 11:19:43 +0200
committerTim-Philipp Müller <tim@centricular.com>2016-06-15 13:10:50 +0100
commit98b62e397b3a27d7ddc0d50d5f8ac4d4f3af54a0 (patch)
treefe5d8821a46700dc16465c403526c0ecdfb15d64 /gst/rtp
parent6cb4208710184836acd10f343ba083343b9437ab (diff)
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
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtph265pay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtp/gstrtph265pay.c b/gst/rtp/gstrtph265pay.c
index 3dc9b8f29..4d5da1387 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. */