diff options
author | Luca Abeni <lucabe72@email.it> | 2009-10-17 11:15:45 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-10-17 11:15:45 +0000 |
commit | 56e6f8309e481f9eff636c93b993c8418fb18f58 (patch) | |
tree | bc9d247b2ecb3a695422e19122112e3e393a811c | |
parent | 215dab5feec98ff84ab27e0a0dd2e634984e67ec (diff) | |
download | ffmpeg-56e6f8309e481f9eff636c93b993c8418fb18f58.tar.gz |
Emit the SDP lines in the correct order
Originally committed as revision 20262 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/sdp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 67b10a21fe..832807062d 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -58,14 +58,14 @@ static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) { 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) |