Mercurial > libavformat.hg
changeset 5291:c17cb5ef9c61 libavformat
Emit the SDP lines in the correct order
author | lucabe |
---|---|
date | Sat, 17 Oct 2009 11:15:45 +0000 |
parents | 0d5653941bf9 |
children | 2568a59ac5fe |
files | sdp.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sdp.c Fri Oct 16 14:46:06 2009 +0000 +++ b/sdp.c Sat Oct 17 11:15:45 2009 +0000 @@ -58,14 +58,14 @@ { av_strlcatf(buff, size, "v=%d\r\n" "o=- %d %d IN IP4 %s\r\n" - "t=%d %d\r\n" - "s=%s\r\n" - "a=tool:libavformat " AV_STRINGIFY(LIBAVFORMAT_VERSION) "\r\n", + "s=%s\r\n", s->sdp_version, s->id, s->version, s->src_addr, - s->start_time, s->end_time, s->name); sdp_write_address(buff, size, s->dst_addr, s->ttl); + av_strlcatf(buff, size, "t=%d %d\r\n" + "a=tool:libavformat " AV_STRINGIFY(LIBAVFORMAT_VERSION) "\r\n", + s->start_time, s->end_time); } static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url)