FFmpeg
Functions
sdp.c File Reference
#include "config_components.h"
#include <string.h>
#include "libavutil/avstring.h"
#include "libavutil/base64.h"
#include "libavutil/dict.h"
#include "libavutil/mem.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 "hevc.h"
#include "nal.h"
#include "rtp.h"
#include "version.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. More...
 
int ff_sdp_write_media (char *buff, int size, const 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. More...
 

Function Documentation

◆ ff_sdp_write_media()

int ff_sdp_write_media ( char *  buff,
int  size,
const 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
Returns
0 on success, a negative error code on failure

Definition at line 921 of file sdp.c.

Referenced by mov_write_udta_sdp().