[FFmpeg-cvslog] Write forced track flag to matroska files.

Carl Eugen Hoyos git at videolan.org
Sun Jan 27 23:42:42 CET 2013


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Sun Jan 27 23:24:52 2013 +0100| [d88d0b6db6bd77269e3c2d3b4894c072f3860671] | committer: Carl Eugen Hoyos

Write forced track flag to matroska files.

Based on a patch by Daniel Pielmeier, daniel pielmeier gmail
Fixes a part of ticket #1815.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d88d0b6db6bd77269e3c2d3b4894c072f3860671
---

 libavformat/matroskaenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index a34f485..c167c01 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



More information about the ffmpeg-cvslog mailing list