From 0558e266a267b5d90d3be1d8d86e60db2c303773 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 18 May 2011 15:41:06 +0300 Subject: sdp: Allow passing an AVFormatContext to the SDP generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Options from the AVFormatContext can be read for modifying the generated SDP. Signed-off-by: Martin Storsjö --- libavformat/internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index ad3d9c91c2..7413b0906a 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -124,10 +124,12 @@ int ff_url_join(char *str, int size, const char *proto, * @param dest_type the destination address type, 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 + * @param fmt the AVFormatContext, which might contain options modifying + * the generated SDP */ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *dest_addr, const char *dest_type, - int port, int ttl); + int port, int ttl, AVFormatContext *fmt); /** * Write a packet to another muxer than the one the user originally -- cgit v1.2.3