rtph264depay: Insert SPS/PPS NALs into the stream
authorSebastian Dröge <sebastian@centricular.com>
Mon, 3 Aug 2015 14:55:01 +0000 (17:55 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 3 Aug 2015 15:24:18 +0000 (18:24 +0300)
commitef7863355c7c7eca24fbd92d6457a91c02f042ac
tree82160c575d612bfdbcb954fb367dabda1e802a49
parent8b6a26170346ccf5d01052229a0618d593b910c5
rtph264depay: Insert SPS/PPS NALs into the stream

h264parse 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 spec about the codec_data.
gst/rtp/gstrtph264depay.c