[FFmpeg-cvslog] Set service_provider and service_name in mpegts demuxer

Georgi Chorbadzhiyski git
Fri Jan 21 20:40:02 CET 2011


ffmpeg | branch: master | Georgi Chorbadzhiyski <gf at unixsol.org> | Thu Jan 20 15:24:53 2011 +0200| [d7b219ca96025e36b4d925009e501173b7bfea4e] | committer: Michael Niedermayer

Set service_provider and service_name in mpegts demuxer

Set service_provider and service_name in mpegts demuxer, previously
name and provider_name were set but since the muxer uses service_provider
and service_name use them.

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit e8315e78814f92d6d031bd3a909d896351a416f8)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7b219ca96025e36b4d925009e501173b7bfea4e
---

 libavformat/mpegts.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 01b69a7..959be31 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1211,8 +1211,8 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
                 if (name) {
                     AVProgram *program = av_new_program(ts->stream, sid);
                     if(program) {
-                        av_metadata_set2(&program->metadata, "name", name, 0);
-                        av_metadata_set2(&program->metadata, "provider_name", provider_name, 0);
+                        av_metadata_set2(&program->metadata, "service_name", name, 0);
+                        av_metadata_set2(&program->metadata, "service_provider", provider_name, 0);
                     }
                 }
                 av_free(name);




More information about the ffmpeg-cvslog mailing list