aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtp.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@savoirfairelinux.com>2011-09-26 11:56:48 -0400
committerMartin Storsjö <martin@martin.st>2011-09-26 21:54:57 +0300
commit9152880e9503f193032304c65c78b297171c81ee (patch)
treeb1f9392ffd369b55d3ac5346d9acf38bb9b019f5 /libavformat/rtp.h
parent142887741fceed6de63a64e21cfca1944c2be889 (diff)
downloadffmpeg-9152880e9503f193032304c65c78b297171c81ee.tar.gz
rtpenc: Add a payload type private option
Specifying the payload type is useful when the type number has already been negotiated before creating the stream, for example in SIP protocol. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r--libavformat/rtp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h
index 4d948ada82..4f35142afd 100644
--- a/libavformat/rtp.h
+++ b/libavformat/rtp.h
@@ -21,15 +21,17 @@
#ifndef AVFORMAT_RTP_H
#define AVFORMAT_RTP_H
+#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
/**
- * Return the payload type for a given codec.
+ * Return the payload type for a given codec used in the given format context.
*
+ * @param fmt The context of the format
* @param codec The context of the codec
* @return The payload type (the 'PT' field in the RTP header).
*/
-int ff_rtp_get_payload_type(AVCodecContext *codec);
+int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec);
/**
* Initialize a codec context based on the payload type.