libavformat/sdp.c File Reference

#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "avformat.h"
#include "internal.h"
#include "avc.h"
#include "rtp.h"

Go to the source code of this file.


int avf_sdp_create (AVFormatContext *ac[], int n_files, char *buff, int size)
 Generate an SDP for an RTP session.

Function Documentation

int avf_sdp_create ( AVFormatContext ac[],
int  n_files,
char *  buff,
int  size 

Generate an SDP for an RTP session.

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.
n_files number of AVCodecContexts contained in ac
buff buffer where the SDP will be stored (must be allocated by the caller)
size the size of the buffer
0 if OK, AVERROR_xxx on error

Definition at line 300 of file sdp.c.

Referenced by prepare_sdp_description(), and print_sdp().

Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8