mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-10-01 08:54:48 +02:00
Write forced track flag to matroska files.
Based on a patch by Daniel Pielmeier, daniel pielmeier gmail Fixes a part of ticket #1815.
This commit is contained in:
parent
a6a5101654
commit
d88d0b6db6
@ -572,6 +572,8 @@ static int mkv_write_tracks(AVFormatContext *s)
|
|||||||
|
|
||||||
if (st->disposition)
|
if (st->disposition)
|
||||||
put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT));
|
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,
|
// look for a codec ID string specific to mkv to use,
|
||||||
// if none are found, use AVI codes
|
// if none are found, use AVI codes
|
||||||
|
Loading…
Reference in New Issue
Block a user