[FFmpeg-cvslog] r25813 - trunk/libavformat/matroskaenc.c

elenril subversion
Tue Nov 23 09:24:41 CET 2010


Author: elenril
Date: Tue Nov 23 09:24:41 2010
New Revision: 25813

Log:
matroskaenc: don't duplicate title information

Title is already written into special fields designated for it --
per-segment Title, per-chapter ChapString and per-stream Name (yay for
consistent naming). Therefore, don't duplicate it in Tags.

Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	Tue Nov 23 08:54:47 2010	(r25812)
+++ trunk/libavformat/matroskaenc.c	Tue Nov 23 09:24:41 2010	(r25813)
@@ -32,6 +32,7 @@
 #include "libavutil/lfg.h"
 #include "libavcodec/xiph.h"
 #include "libavcodec/mpeg4audio.h"
+#include <strings.h>
 
 typedef struct ebml_master {
     int64_t         pos;                ///< absolute offset in the file where the master's elements start
@@ -742,7 +743,8 @@ static int mkv_write_tag(AVFormatContext
     end_ebml_master(s->pb, targets);
 
     while ((t = av_metadata_get(m, "", t, AV_METADATA_IGNORE_SUFFIX)))
-        mkv_write_simpletag(s->pb, t);
+        if (strcasecmp(t->key, "title"))
+            mkv_write_simpletag(s->pb, t);
 
     end_ebml_master(s->pb, tag);
     return 0;



More information about the ffmpeg-cvslog mailing list