diff matroskaenc.c @ 4240:dff232a64d7c libavformat

Treat disposition==0 as undefined and don't write the default flag
author conrad
date Sat, 17 Jan 2009 04:31:14 +0000
parents 5d0ac4d87ba1
children c507e877c0ee
line wrap: on
line diff
--- a/matroskaenc.c	Sat Jan 17 04:30:36 2009 +0000
+++ b/matroskaenc.c	Sat Jan 17 04:31:14 2009 +0000
@@ -560,6 +560,7 @@
         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,