rtph265: fix NAL unit type parsing and SPS/PPS/VPS detection
authorJürgen Slowack <jurgen.slowack@barco.com>
Wed, 15 Jun 2016 09:19:43 +0000 (11:19 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 15 Jun 2016 12:10:50 +0000 (13:10 +0100)
Fixes sps/pps/vps insertion via the config-interval property.

https://bugzilla.gnome.org//show_bug.cgi?id=767680

gst/rtp/gstrtph265pay.c

index 3dc9b8f..4d5da13 100644 (file)
@@ -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. */