From: Jürgen Slowack Date: Wed, 15 Jun 2016 09:19:43 +0000 (+0200) Subject: rtph265: fix NAL unit type parsing and SPS/PPS/VPS detection X-Git-Tag: 1.19.3~509^2~2699 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98b62e397b3a27d7ddc0d50d5f8ac4d4f3af54a0;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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. */