[FFmpeg-cvslog] mpegtsenc: prefer metadata keyed with "service_name"
Janne Grunau
git
Fri Jan 21 20:40:02 CET 2011
ffmpeg | branch: master | Janne Grunau <janne-ffmpeg at jannau.net> | Thu Jan 20 15:03:47 2011 +0100| [236bb68d76fb28133883b8c8ba8cd23016a8efde] | committer: Michael Niedermayer
mpegtsenc: prefer metadata keyed with "service_name"
title metadata is only used as fallback if no service_name is available.
Signed-off-by: Janne Grunau <janne-ffmpeg at jannau.net>
(cherry picked from commit e5fe65512bfc824b9827ed29909a54122582ef2a)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=236bb68d76fb28133883b8c8ba8cd23016a8efde
---
libavformat/mpegtsenc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 14bbd62..f33b6c6 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -400,9 +400,9 @@ static int mpegts_write_header(AVFormatContext *s)
ts->tsid = DEFAULT_TSID;
ts->onid = DEFAULT_ONID;
/* allocate a single DVB service */
- title = av_metadata_get(s->metadata, "title", NULL, 0);
+ title = av_metadata_get(s->metadata, "service_name", NULL, 0);
if (!title)
- title = av_metadata_get(s->metadata, "service_name", NULL, 0);
+ title = av_metadata_get(s->metadata, "title", NULL, 0);
service_name = title ? title->value : DEFAULT_SERVICE_NAME;
provider = av_metadata_get(s->metadata, "service_provider", NULL, 0);
provider_name = provider ? provider->value : DEFAULT_PROVIDER_NAME;
More information about the ffmpeg-cvslog
mailing list