Mercurial > libavformat.hg
diff matroskadec.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 | 9fefe2df6756 |
children | 20db4653d696 |
line wrap: on
line diff
--- a/matroskadec.c Thu Mar 06 20:44:44 2008 +0000 +++ b/matroskadec.c Fri Mar 07 19:25:09 2008 +0000 @@ -2298,6 +2298,9 @@ if (strcmp(track->language, "und")) strcpy(st->language, track->language); + if (track->flags & MATROSKA_TRACK_DEFAULT) + st->disposition |= AV_DISPOSITION_DEFAULT; + if (track->default_duration) av_reduce(&st->codec->time_base.num, &st->codec->time_base.den, track->default_duration, 1000000000, 30000);