Mercurial > libavformat.hg
changeset 4427:4d45ef755d67 libavformat
use new metadata API in mpegts demuxer
author | aurel |
---|---|
date | Tue, 10 Feb 2009 00:25:21 +0000 |
parents | 7854590fb1fd |
children | fc705c33843f |
files | mpegts.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Mon Feb 09 21:34:20 2009 +0000 +++ b/mpegts.c Tue Feb 10 00:25:21 2009 +0000 @@ -659,7 +659,7 @@ if (st) { if (language[0] != 0) { - memcpy(st->language, language, 4); + av_metadata_set(&st->metadata, "language", language); } if (stream_type == STREAM_TYPE_SUBTITLE_DVB) { @@ -785,8 +785,10 @@ name = getstr8(&p, p_end); if (name) { AVProgram *program = av_new_program(ts->stream, sid); - if(program) - av_set_program_name(program, provider_name, name); + if(program) { + av_metadata_set(&program->metadata, "name", name); + av_metadata_set(&program->metadata, "provider_name", provider_name); + } } av_free(name); av_free(provider_name);