rtph265depay: Insert SPS/PPS NALs into the stream
authorLuis de Bethencourt <luis@debethencourt.com>
Wed, 12 Aug 2015 15:11:00 +0000 (16:11 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Feb 2016 00:24:40 +0000 (00:24 +0000)
commitd10b6f1e3ac35c48ca9239d8d526e244d6b982f3
treec6b9fb28a373d391a95f9b2ca52129f493484b0c
parent0bfa97b047c788875c9cb1f4a570c5db8c2242ce
rtph265depay: Insert SPS/PPS NALs into the stream

rtph264depay does the same and this fixes decoding of some streams with 32
SPS (or 256 PPS). It is allowed to have SPS ID 0 to 31 (or PPS ID 0 to 255),
but the field in the codec_data for the number of SPS or PPS is only 5
(or 8) bit. As such, 32 SPS (or 256 PPS) are interpreted as 0 everywhere.

This looks like a mistake in the part of the spect about the codec_data.
gst/rtp/gstrtph265depay.c