FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
sdp.c File Reference
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "libavutil/dict.h"
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
#include "libavcodec/xiph.h"
#include "libavcodec/mpeg4audio.h"
#include "avformat.h"
#include "internal.h"
#include "avc.h"
#include "rtp.h"

Go to the source code of this file.

Functions

int av_sdp_create (AVFormatContext *ac[], int n_files, char *buf, int size)
 Generate an SDP for an RTP session.
 
void ff_sdp_write_media (char *buff, int size, AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt)
 Append the media-specific SDP fragment for the media stream c to the buffer buff.
 

Function Documentation

void ff_sdp_write_media ( char *  buff,
int  size,
AVStream st,
int  idx,
const char *  dest_addr,
const char *  dest_type,
int  port,
int  ttl,
AVFormatContext fmt 
)

Append the media-specific SDP fragment for the media stream c to the buffer buff.

Note, the buffer needs to be initialized, since it is appended to existing content.

Parameters
buffthe buffer to append the SDP fragment to
sizethe size of the buff buffer
stthe AVStream of the media to describe
idxthe global stream index
dest_addrthe destination address of the media stream, may be NULL
dest_typethe destination address type, may be NULL
portthe destination port of the media stream, 0 if unknown
ttlthe time to live of the stream, 0 if not multicast
fmtthe AVFormatContext, which might contain options modifying the generated SDP

Definition at line 695 of file sdp.c.

Referenced by mov_write_udta_sdp().