smoothstreaming: fix H264 CodecPrivateData parsing

Do not pass SPS nal_unit_type (0x67) into gst_h264_parse_sps()

Fixes #648
This commit is contained in:
yychao 2020-03-10 11:52:23 +08:00 committed by GStreamer Merge Bot
parent 4b06b1a56e
commit cb0e4bffea

View file

@ -629,8 +629,8 @@ _gst_mss_stream_add_h264_codec_data (GstCaps * caps, const gchar * codecdatastr)
nalu.ref_idc = (spsinfo.data[0] & 0x60) >> 5;
nalu.type = GST_H264_NAL_SPS;
nalu.size = spsinfo.size;
nalu.data = spsinfo.data;
nalu.size = spsinfo.size - 1;
nalu.data = spsinfo.data + 1;
nalu.offset = 0;
nalu.sc_offset = 0;
nalu.valid = TRUE;