diff options
author | Luca Abeni <lucabe72@email.it> | 2009-02-16 10:21:14 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-02-16 10:21:14 +0000 |
commit | b0a880b38b9625e9371c721e33e4c12704e04736 (patch) | |
tree | 558364363422e22a3f633691d0c0126c6eb83fbb /libavformat | |
parent | 0550b58f4e8091959242f57d15be50e2bf23880f (diff) | |
download | ffmpeg-b0a880b38b9625e9371c721e33e4c12704e04736.tar.gz |
Document ff_rtp_get_payload_type()
Originally committed as revision 17365 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtp.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h index 1347045f3a..3d8b79acb3 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -23,7 +23,14 @@ #include "libavcodec/avcodec.h" -/** return < 0 if unknown payload type */ +/** + * Return the payload type for a given codec. + * + * @param codec The context of the codec + * @return In case of unknown payload type or dynamic payload type, a + * negative value is returned; otherwise, the payload type (the 'PT' field + * in the RTP header) is returned. + */ int ff_rtp_get_payload_type(AVCodecContext *codec); #define RTP_PT_PRIVATE 96 |