Skip to content

rtph264depay: Warn when max SPS/PPS are collected in AVC mode.

The AVC codec_data has a flaw that it can only accomodate 31 SPS headers, even though H.264 can have 32, and 255 PPS, when there can be 256 in H.264. When streaming RTP some clients like to cycle through SPS/PPS ids when changing configuration and can eventually accumulate a full set.

In that case, we have no choice but to discard one (oldest) entry, or else the count written into the codec_data is wrong and downstream decoding failures ensue.

Merge request reports

Loading