diff avformat.h @ 2284:59d84b0f7d30 libavformat

Introduce an SDP generator
author lucabe
date Thu, 26 Jul 2007 22:34:26 +0000
parents 69270eb6b20c
children 9c8cfadff191
line wrap: on
line diff
--- a/avformat.h	Thu Jul 26 13:02:07 2007 +0000
+++ b/avformat.h	Thu Jul 26 22:34:26 2007 +0000
@@ -833,6 +833,21 @@
  */
 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"