100 int64_t payload_type;
103 return (
int)payload_type;
enum AVMediaType codec_type
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...
static const struct @86 AVRtpPayloadTypes[]
Opaque data information usually continuous.
struct AVOutputFormat * oformat
preferred ID for MPEG-1/2 video decoding
int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type)
Initialize a codec context based on the payload type.
Usually treated as AVMEDIA_TYPE_DATA.
enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type)
Return the codec id for the given encoding name and codec type.
int av_opt_get_int(void *obj, const char *name, int search_flags, int64_t *out_val)
enum AVMediaType codec_type
int sample_rate
samples per second
main external API structure.
FAKE codec to indicate a raw MPEG-2 TS stream (only used by libavformat)
CodecID
Identify the syntax and semantics of the bitstream.
int channels
number of audio channels
void * priv_data
Format private data.
int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec)
Return the payload type for a given codec used in the given format context.
preferred ID for decoding MPEG audio layer 1, 2 or 3