Commit 51da49c9 authored by aurel's avatar aurel

use new metadata API in mpegts demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17112 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2a99e5b9
...@@ -659,7 +659,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len ...@@ -659,7 +659,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if (st) { if (st) {
if (language[0] != 0) { if (language[0] != 0) {
memcpy(st->language, language, 4); av_metadata_set(&st->metadata, "language", language);
} }
if (stream_type == STREAM_TYPE_SUBTITLE_DVB) { if (stream_type == STREAM_TYPE_SUBTITLE_DVB) {
...@@ -785,8 +785,10 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len ...@@ -785,8 +785,10 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
name = getstr8(&p, p_end); name = getstr8(&p, p_end);
if (name) { if (name) {
AVProgram *program = av_new_program(ts->stream, sid); AVProgram *program = av_new_program(ts->stream, sid);
if(program) if(program) {
av_set_program_name(program, provider_name, name); av_metadata_set(&program->metadata, "name", name);
av_metadata_set(&program->metadata, "provider_name", provider_name);
}
} }
av_free(name); av_free(name);
av_free(provider_name); av_free(provider_name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment