Revision d3a57949 libavformat/rtp.h

View differences:

libavformat/rtp.h
33 33
 */
34 34
int ff_rtp_get_payload_type(AVCodecContext *codec);
35 35

  
36
/**
37
 * Initialize a codec context based on the payload type.
38
 *
39
 * Fill the codec_type and codec_id fields of a codec context with
40
 * information depending on the payload type; for audio codecs, the
41
 * channels and sample_rate fields are also filled.
42
 *
43
 * @param codec The context of the codec
44
 * @param payload_type The the payload type (the 'PT' field in the RTP header)
45
 * @return In case of unknown payload type or dynamic payload type, a
46
 * negative value is returned; otherwise, 0 is returned
47
 */
36 48
int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type);
37 49
const char *ff_rtp_enc_name(int payload_type);
38 50
enum CodecID ff_rtp_codec_id(const char *buf, enum CodecType codec_type);

Also available in: Unified diff