[FFmpeg-devel] [PATCH] matroskaenc: use "title" tag instead of "description" in track title.

Anton Khirnov wyskas
Sun Feb 28 08:38:16 CET 2010


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

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index a8f99bf..ad41893 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -536,7 +536,7 @@ static int mkv_write_tracks(AVFormatContext *s)
         put_ebml_uint (pb, MATROSKA_ID_TRACKFLAGLACING , 0);    // no lacing (yet)
         put_ebml_float(pb, MATROSKA_ID_TRACKTIMECODESCALE, 1.0);
 
-        if ((tag = av_metadata_get(st->metadata, "description", NULL, 0)))
+        if ((tag = av_metadata_get(st->metadata, "title", NULL, 0)))
             put_ebml_string(pb, MATROSKA_ID_TRACKNAME, tag->value);
         tag = av_metadata_get(st->metadata, "language", NULL, 0);
         put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag ? tag->value:"und");
-- 
1.6.6.1




More information about the ffmpeg-devel mailing list