diff matroskaenc.c @ 3120:ea5623a8efde libavformat

Add 'disposition' bitfield to AVStream and use it for both muxing and demuxing of matroska and nut.
author eugeni
date Fri, 07 Mar 2008 19:25:09 +0000
parents 298c49463701
children 1a16b069daca
line wrap: on
line diff
--- a/matroskaenc.c	Thu Mar 06 20:44:44 2008 +0000
+++ b/matroskaenc.c	Fri Mar 07 19:25:09 2008 +0000
@@ -550,6 +550,8 @@
         else
             put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, "und");
 
+        put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT));
+
         // look for a codec ID string specific to mkv to use,
         // if none are found, use AVI codes
         for (j = 0; ff_mkv_codec_tags[j].id != CODEC_ID_NONE; j++) {