diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-01-27 23:24:52 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-01-27 23:24:52 +0100 |
commit | d88d0b6db6bd77269e3c2d3b4894c072f3860671 (patch) | |
tree | 72e6e8ea3518ad5f55b44d9724aa31a400754c5c /libavformat/matroskaenc.c | |
parent | a6a510165448a968a0e9a37e04355b0fcc6c8793 (diff) | |
download | ffmpeg-d88d0b6db6bd77269e3c2d3b4894c072f3860671.tar.gz |
Write forced track flag to matroska files.
Based on a patch by Daniel Pielmeier, daniel pielmeier gmail
Fixes a part of ticket #1815.
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index a34f485293..c167c015fe 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -572,6 +572,8 @@ static int mkv_write_tracks(AVFormatContext *s) if (st->disposition) put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT)); + if (st->disposition & AV_DISPOSITION_FORCED) + put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGFORCED, 1); // look for a codec ID string specific to mkv to use, // if none are found, use AVI codes |