21 #ifndef AVFORMAT_RTP_H 22 #define AVFORMAT_RTP_H 77 #define RTP_PT_PRIVATE 96 79 #define RTP_MAX_SDES 256 82 #define RTCP_TX_RATIO_NUM 5 83 #define RTCP_TX_RATIO_DEN 1000 89 #define RTP_XIPH_IDENT 0xfecdba 110 #define RTP_PT_IS_RTCP(x) (((x) >= RTCP_FIR && (x) <= RTCP_IJ) || \ 111 ((x) >= RTCP_SR && (x) <= RTCP_TOKEN)) 113 #define NTP_TO_RTP_FORMAT(x) av_rescale((x), INT64_C(1) << 32, 1000000)
const char * ff_rtp_enc_name(int payload_type)
Return the encoding name (as defined in http://www.iana.org/assignments/rtp-parameters) for a given p...
enum AVMediaType codec_type
This struct describes the properties of an encoded stream.
int ff_rtp_get_codec_info(AVCodecParameters *par, int payload_type)
Initialize a codec context based on the payload type.
AVCodecID
Identify the syntax and semantics of the bitstream.
enum AVCodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type)
Return the codec id for the given encoding name and codec type.
int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecParameters *par, int idx)
Return the payload type for a given stream used in the given format context.
Libavcodec external API header.