diff options
author | Luca Abeni <lucabe72@email.it> | 2009-02-28 19:34:50 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-02-28 19:34:50 +0000 |
commit | 3aa7ac6dd2d23f7b454e8ddb13f7d17e8a83e596 (patch) | |
tree | c91c658562fb329a8926c07749ac09964f1c8fa5 | |
parent | 4c6b49bf74f3a4ae3b198d487b7d3b5b64226778 (diff) | |
download | ffmpeg-3aa7ac6dd2d23f7b454e8ddb13f7d17e8a83e596.tar.gz |
Document ff_rtp_codec_id()
Originally committed as revision 17666 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h index 26f7cbb371..80081ac9eb 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -57,6 +57,15 @@ int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type); * the encoding name is returned */ const char *ff_rtp_enc_name(int payload_type); + +/** + * Return the codec id for the given encoding name and codec type. + * + * @param buf A pointer to the string containing the encoding name + * @param codec_type The codec type + * @return In case of unknown encoding name, CODEC_ID_NONE is returned; + * otherwise, the codec id is returned + */ enum CodecID ff_rtp_codec_id(const char *buf, enum CodecType codec_type); #define RTP_PT_PRIVATE 96 |