diff options
author | David Conrad <lessen42@gmail.com> | 2009-01-17 07:31:14 +0300 |
---|---|---|
committer | David Conrad <lessen42@gmail.com> | 2009-01-17 07:31:14 +0300 |
commit | 1c3db2aa5010c7a55b882f2691fa6fa15b78ec5a (patch) | |
tree | cd2f452b094090b03de49b36248847d32185092c /libavformat/matroskaenc.c | |
parent | 8a86aaa3b2e3a7c581048abd2b25ee43d3a92eb7 (diff) |
Treat disposition==0 as undefined and don't write the default flag
Originally committed as revision 16651 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r-- | libavformat/matroskaenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 59016cab9f..368c351564 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -560,6 +560,7 @@ static int mkv_write_tracks(AVFormatContext *s) else put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, "und"); + if (st->disposition) put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT)); // look for a codec ID string specific to mkv to use, |