aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp.h
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2009-02-28 18:21:43 +0000
committerLuca Abeni <lucabe72@email.it>2009-02-28 18:21:43 +0000
commitc3efd98c09da4b49bcd47da188d9677e79598d04 (patch)
tree746738dd832160ed2f43f08fb9bbe47b0b805cb4 /libavformat/rtp.h
parent344bcea46de2e00faca945463818962fca552826 (diff)
downloadffmpeg-c3efd98c09da4b49bcd47da188d9677e79598d04.tar.gz
Document ff_rtp_enc_name()
Originally committed as revision 17663 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r--libavformat/rtp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h
index dbed54e31d..998a30f0da 100644
--- a/libavformat/rtp.h
+++ b/libavformat/rtp.h
@@ -46,6 +46,16 @@ int ff_rtp_get_payload_type(AVCodecContext *codec);
* negative value is returned; otherwise, 0 is returned
*/
int ff_rtp_get_codec_info(AVCodecContext *codec, int payload_type);
+
+/**
+ * Return the encoding name (as defined in
+ * http://www.iana.org/assignments/rtp-parameters) for a given payload type.
+ *
+ * @param payload_type The payload type (the 'PT' field in the RTP header)
+ * @return In case of unknown payload type or dynamic payload type, a pointer
+ * to an empty string is returned; otherwise, a pointer to a string containing
+ * the encoding name is returned
+ */
const char *ff_rtp_enc_name(int payload_type);
enum CodecID ff_rtp_codec_id(const char *buf, enum CodecType codec_type);