aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-02-10 00:25:21 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-02-10 00:25:21 +0000
commit086811910650e73a08bfb34fc7259e6f605bbf2f (patch)
tree04e8063cbceb08b56af7ea13cf18faae44e286b8
parentedbdf77ec502b9428fa83e86480ec7ed763458bd (diff)
downloadffmpeg-086811910650e73a08bfb34fc7259e6f605bbf2f.tar.gz
use new metadata API in mpegts demuxer
Originally committed as revision 17112 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mpegts.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 248a35f0ff..3dc28409de 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -659,7 +659,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
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 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
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);