Mercurial > libavformat.hg
diff internal.h @ 6009:b740f4918397 libavformat
Make ff_sdp_write_media a lavf-internal function
This is in preparation for RTP hinting in the MOV muxer, where
it needs to be able to create SDP fragments for each media stream.
author | mstorsjo |
---|---|
date | Tue, 18 May 2010 19:32:59 +0000 |
parents | 28ca2d77f997 |
children | ee42a04b24f2 |
line wrap: on
line diff
--- a/internal.h Tue May 18 19:23:29 2010 +0000 +++ b/internal.h Tue May 18 19:32:59 2010 +0000 @@ -137,4 +137,21 @@ const char *authorization, const char *hostname, int port, const char *fmt, ...); +/** + * Appends 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. + * + * @param buff the buffer to append the SDP fragment to + * @param size the size of the buff buffer + * @param c the AVCodecContext of the media to describe + * @param dest_addr the destination address of the media stream, may be NULL + * @param port the destination port of the media stream, 0 if unknown + * @param ttl the time to live of the stream, 0 if not multicast + */ +void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, + const char *dest_addr, int port, int ttl); + #endif /* AVFORMAT_INTERNAL_H */