Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-07-27 02:34:26 +0400
committerLuca Abeni <lucabe72@email.it>2007-07-27 02:34:26 +0400
commitc5388c07841280e0c8b6828b56c538d784aa0f1a (patch)
tree496738c72d9e514d0f62961bc5ed518251808197 /libavformat/avformat.h
parent0eb7d7806637fcc379d2d4936123bcb415b495f9 (diff)
Introduce an SDP generator
Originally committed as revision 9806 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 961e3455a7..cfd4effbb7 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -833,6 +833,21 @@ int av_get_frame_filename(char *buf, int buf_size,
*/
int av_filename_number_test(const char *filename);
+/**
+ * Generate an SDP for an RTP session.
+ *
+ * @param ac array of AVFormatContexts describing the RTP streams. If the
+ * array is composed by only one context, such context can contain
+ * multiple AVStreams (one AVStream per RTP stream). Otherwise,
+ * all the contexts in the array (an AVCodecContext per RTP stream)
+ * must contain only one AVStream
+ * @param n_streams number of AVCodecContexts contained in ac
+ * @return a pointer to the SDP (an array of chars which is allocated by
+ * avf_sdp_create(), and must be freed by the caller), or NULL in
+ * case of failure.
+ */
+char *avf_sdp_create(AVFormatContext *ac[], int n_streams);
+
#ifdef HAVE_AV_CONFIG_H
#include "os_support.h"