pub fn normalize_modex_payload<'a>(
payload: &'a [u8],
caps_ex_mask: u32,
) -> Cow<'a, [u8]>Expand description
Peels chained ModEx wrappers so codec/multitrack detection sees the
underlying packet type. When a chain exceeds MAX_MODEX_CHAIN_LAYERS the
payload is intentionally left wrapped and opaque: codec/multitrack
detection derived from this payload (e.g. Conn::detected_video_codec /
detected_audio_codec) will not fire for that frame. This is a deliberate
CPU-amplification tradeoff, not a parsing bug — callers that surface
detected-codec stats should expect them to be absent for such frames.