[FFmpeg-cvslog] r17112 - trunk/libavformat/mpegts.c
aurel
subversion
Tue Feb 10 01:25:21 CET 2009
Author: aurel
Date: Tue Feb 10 01:25:21 2009
New Revision: 17112
Log:
use new metadata API in mpegts demuxer
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c Tue Feb 10 00:37:31 2009 (r17111)
+++ trunk/libavformat/mpegts.c Tue Feb 10 01:25:21 2009 (r17112)
@@ -659,7 +659,7 @@ static void pmt_cb(MpegTSFilter *filter,
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,
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);
More information about the ffmpeg-cvslog
mailing list