diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-18 19:32:59 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-18 19:32:59 +0000 |
commit | 0341b6994ab2b819846fe1cf98b899235c5290fe (patch) | |
tree | 2c0f87468640a8c9674677f562ab76d0bc7c98af /libavformat/internal.h | |
parent | 698f4cc7f0af0ba9ef54b01cfffd1f02d7aa5d05 (diff) | |
download | ffmpeg-0341b6994ab2b819846fe1cf98b899235c5290fe.tar.gz |
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.
Originally committed as revision 23160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index 789988019d..a395c2f24b 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -137,4 +137,21 @@ int ff_url_join(char *str, int size, const char *proto, 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 */ |