Go to the documentation of this file.
101 int64_t payload_type;
104 return (
int)payload_type;
enum AVMediaType codec_type
General type of the encoded data.
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.
This struct describes the properties of an encoded stream.
int av_strcasecmp(const char *a, const char *b)
Locale-independent case-insensitive compare.
static const struct @326 rtp_payload_types[]
enum AVChannelOrder order
Channel order used in this layout.
int nb_channels
Number of channels in this layout.
enum AVMediaType codec_type
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
@ AV_CHANNEL_ORDER_UNSPEC
Only the channel count is specified, without any further information about the channel order.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
@ AV_CODEC_ID_MPEG2TS
FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_val)
AVChannelLayout ch_layout
Audio only.
int sample_rate
Audio only.
AVCodecID
Identify the syntax and semantics of the bitstream.
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
int ff_rtp_get_codec_info(AVCodecParameters *par, int payload_type)
Initialize a codec context based on the payload type.
#define i(width, name, range_min, range_max)
const struct AVOutputFormat * oformat
The output container format.
void av_channel_layout_uninit(AVChannelLayout *channel_layout)
Free any allocated data in the channel layout and reset the channel count to 0.
int av_opt_flag_is_set(void *obj, const char *field_name, const char *flag_name)
Check whether a particular flag is set in a flags field.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
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...
@ AV_CODEC_ID_MPEG2VIDEO
preferred ID for MPEG-1/2 video decoding
void * priv_data
Format private data.
int ff_rtp_get_payload_type(const AVFormatContext *fmt, const AVCodecParameters *par, int idx)
Return the payload type for a given stream used in the given format context.