#include <stdint.h>#include "libavutil/avutil.h"#include "libavcodec/codec_id.h"#include "libavcodec/codec_par.h"#include "libavformat/avformat.h"Go to the source code of this file.
Return the payload type for a given stream used in the given format context.
Static payload types are derived from the codec. Dynamic payload type are derived from the id field in AVStream. The format context private option payload_type overrides both.
Definition at line 93 of file rtp.c.
Referenced by ff_rtp_chain_mux_open(), and rtp_write_header().
Initialize a codec context based on the payload type.
Fill the codec_type and codec_id fields of a codec context with information depending on the payload type; for audio codecs, the channels and sample_rate fields are also filled.
Return the encoding name (as defined in http://www.iana.org/assignments/rtp-parameters) for a given payload type.
Return the codec id for the given encoding name and codec type.