diff options
author | jstebbins <[email protected]> | 2013-06-30 20:44:21 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2013-06-30 20:44:21 +0000 |
commit | ba3674603258b9bd9662af2b8f2225f9e9395ca1 (patch) | |
tree | 69cf3e5d77d21f07a57554ae5d1dd2bfa78e7f8b /contrib/ffmpeg/A06-mkv-default-subtitle.patch | |
parent | d6fcba15d04322d3b6495cae70b813be5c3243b4 (diff) |
libhb: add experimental avformat muxer for mkv and mp4
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5620 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib/ffmpeg/A06-mkv-default-subtitle.patch')
-rw-r--r-- | contrib/ffmpeg/A06-mkv-default-subtitle.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A06-mkv-default-subtitle.patch b/contrib/ffmpeg/A06-mkv-default-subtitle.patch new file mode 100644 index 000000000..9074a3443 --- /dev/null +++ b/contrib/ffmpeg/A06-mkv-default-subtitle.patch @@ -0,0 +1,30 @@ +From f1febbdddc573c7684e1761abfe568ebfcfcdcd1 Mon Sep 17 00:00:00 2001 +From: John Stebbins <[email protected]> +Date: Fri, 10 May 2013 08:49:58 -0700 +Subject: [PATCH 3/9] matroskaenc: Fix writing TRACKDEFAULTFLAG + +The element was only being written when the value == 1. But the default +value of this element is 1, so this has no useful effect. This element +needs to be written when the value == 0. +--- + libavformat/matroskaenc.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c +index 4858af5..358ba66 100644 +--- a/libavformat/matroskaenc.c ++++ b/libavformat/matroskaenc.c +@@ -568,7 +568,9 @@ static int mkv_write_tracks(AVFormatContext *s) + tag = av_dict_get(st->metadata, "language", NULL, 0); + put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag ? tag->value:"und"); + +- if (st->disposition) ++ // The default value for TRACKFLAGDEFAULT is 1, so add element ++ // if we need to clear it. ++ if (!(st->disposition & AV_DISPOSITION_DEFAULT)) + put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT)); + + // look for a codec ID string specific to mkv to use, +-- +1.8.1.4 + |