diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-02 23:08:25 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-02 23:08:25 +0000 |
commit | f3650b239eced1e9cde762fc4386a4ba93521176 (patch) | |
tree | 7e17d0b96469f87e534fd431f3e647d7ce2b3df5 | |
parent | 10ce8f23724e081712028c63d393e9eacfb72ba9 (diff) | |
download | ffmpeg-f3650b239eced1e9cde762fc4386a4ba93521176.tar.gz |
use new metadata API in rtp muxer
Originally committed as revision 16960 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/sdp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 09541e3672..83512c2b3f 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -64,7 +64,7 @@ static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) s->sdp_version, s->id, s->version, s->src_addr, s->start_time, s->end_time, - s->name[0] ? s->name : "No Name"); + s->name); sdp_write_address(buff, size, s->dst_addr, s->ttl); } @@ -256,6 +256,7 @@ static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) { + AVMetadataTag *title = av_metadata_get(ac[0]->metadata, "title", NULL, 0); struct sdp_session_level s; int i, j, port, ttl; char dst[32]; @@ -264,7 +265,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) memset(&s, 0, sizeof(struct sdp_session_level)); s.user = "-"; s.src_addr = "127.0.0.1"; /* FIXME: Properly set this */ - s.name = ac[0]->title; + s.name = title ? title->value : "No Name"; port = 0; ttl = 0; |