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)
committerLuis de Bethencourt <luis@debethencourt.com>
Wed, 12 Aug 2015 15:34:43 +0000 (16:34 +0100)
commit021333a9fc38a67d4054302c55188598c325e98f
treeca1094699bec6d7681489512ea5edddc4fd985ba
parentfee3129d495b4355c2716f0f5fe053f9178280a4
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