From 1cfd1478d6d190f0264f11887b20877373698729 Mon Sep 17 00:00:00 2001
From: Daniel Pielmeier <daniel.pielmeier@gmail.com>
Date: Sat, 13 Oct 2012 18:59:23 +0200
Subject: [PATCH] Proper copying of default and forced track flags for
matroska files.
---
libavformat/matroskaenc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 375f728..2d492a8 100644
|
a
|
b
|
static int mkv_write_tracks(AVFormatContext *s) |
| 568 | 568 | put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag ? tag->value:"und"); |
| 569 | 569 | |
| 570 | 570 | if (st->disposition) |
| | 571 | put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGFORCED, !!(st->disposition & AV_DISPOSITION_FORCED)); |
| 571 | 572 | put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT)); |
| 572 | 573 | |
| 573 | 574 | // look for a codec ID string specific to mkv to use, |