sdp: Allow passing an AVFormatContext to the SDP generation

Options from the AVFormatContext can be read for modifying
the generated SDP.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2011-05-18 15:41:06 +03:00
parent f33a6a22b4
commit 0558e266a2
3 changed files with 10 additions and 7 deletions

View File

@@ -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