From 1c3db2aa5010c7a55b882f2691fa6fa15b78ec5a Mon Sep 17 00:00:00 2001 From: David Conrad <lessen42@gmail.com> Date: Sat, 17 Jan 2009 04:31:14 +0000 Subject: [PATCH] Treat disposition==0 as undefined and don't write the default flag Originally committed as revision 16651 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskaenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 59016cab9fe..368c3515641 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, -- GitLab