[][src]Function discortp::demux

pub fn demux(pkt: &[u8]) -> Option<Demuxed>

Demultiplexes combined RTP and RTCP streams.

This is subject to the profile restrictions under RFC 5761, which restricts the set of allowed payload types. In particular, this implementation returns an RtcpPacket if its packet type matches any known RTCP packet type.