summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg/A05-matroskaenc-track-lang.patch
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2015-11-21 20:49:39 +0100
committerTim Walker <[email protected]>2015-11-21 21:07:35 +0100
commit11ddbc297ea5551f739029733e5f1cd619a2849a (patch)
treeaab9b947a266d0145d11a347b772025ccc7926b3 /contrib/ffmpeg/A05-matroskaenc-track-lang.patch
parente89c5b3853397e347792c0ccdcc1d8b0a80cfaf4 (diff)
libav: rename patches after last commit.
Diffstat (limited to 'contrib/ffmpeg/A05-matroskaenc-track-lang.patch')
-rw-r--r--contrib/ffmpeg/A05-matroskaenc-track-lang.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A05-matroskaenc-track-lang.patch b/contrib/ffmpeg/A05-matroskaenc-track-lang.patch
new file mode 100644
index 000000000..4b16e4d41
--- /dev/null
+++ b/contrib/ffmpeg/A05-matroskaenc-track-lang.patch
@@ -0,0 +1,15 @@
+diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
+index b39d1b2..d65b6eb 100644
+--- a/libavformat/matroskaenc.c
++++ b/libavformat/matroskaenc.c
+@@ -988,7 +988,9 @@ static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int eleme
+
+ while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX)))
+ if (av_strcasecmp(t->key, "title") &&
+- av_strcasecmp(t->key, "encoding_tool"))
++ av_strcasecmp(t->key, "encoding_tool") &&
++ (elementid != MATROSKA_ID_TAGTARGETS_TRACKUID ||
++ av_strcasecmp(t->key, "language")))
+ mkv_write_simpletag(s->pb, t);
+
+ end_ebml_master(s->pb, tag);