pub fn payload_starts_idr(
payload: &[u8],
packetization_mode: PacketizationMode,
) -> boolExpand description
Detects an H264 RTP packet that starts an IDR access unit.
RFC 6184 carries IDR frames either as a single NAL unit, inside a STAP-A aggregation packet or as the first fragment of a FU-A packet.
The input must be the RTP codec payload, not a complete RTP packet.
Truncated aggregation packets and incomplete FU-A packets return
false. The helper does not parse a full access unit. It only answers
whether this packet can refresh a decoder if forwarded.