OSDN Git Service

Document ff_rtp_get_payload_type()
authorLuca Abeni <lucabe72@email.it>
Mon, 16 Feb 2009 10:21:14 +0000 (10:21 +0000)
committerLuca Abeni <lucabe72@email.it>
Mon, 16 Feb 2009 10:21:14 +0000 (10:21 +0000)
Originally committed as revision 17365 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtp.h

index 1347045..3d8b79a 100644 (file)
 
 #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