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.
Originally committed as revision 25813 to svn://svn.ffmpeg.org/ffmpeg/trunk
... | ... |
@@ -32,6 +32,7 @@ |
32 | 32 |
#include "libavutil/lfg.h" |
33 | 33 |
#include "libavcodec/xiph.h" |
34 | 34 |
#include "libavcodec/mpeg4audio.h" |
35 |
+#include <strings.h> |
|
35 | 36 |
|
36 | 37 |
typedef struct ebml_master { |
37 | 38 |
int64_t pos; ///< absolute offset in the file where the master's elements start |
... | ... |
@@ -742,7 +743,8 @@ static int mkv_write_tag(AVFormatContext *s, AVMetadata *m, unsigned int element |
742 | 742 |
end_ebml_master(s->pb, targets); |
743 | 743 |
|
744 | 744 |
while ((t = av_metadata_get(m, "", t, AV_METADATA_IGNORE_SUFFIX))) |
745 |
- mkv_write_simpletag(s->pb, t); |
|
745 |
+ if (strcasecmp(t->key, "title")) |
|
746 |
+ mkv_write_simpletag(s->pb, t); |
|
746 | 747 |
|
747 | 748 |
end_ebml_master(s->pb, tag); |
748 | 749 |
return 0; |