[FFmpeg-devel] [PATCH]Write FORCED property for mkv streams
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Jan 27 23:04:06 CET 2013
Hi!
Attached patch fixes a part of ticket #1815.
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index a34f485..c167c01 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -572,6 +572,8 @@ static int mkv_write_tracks(AVFormatContext *s)
if (st->disposition)
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,
// if none are found, use AVI codes
More information about the ffmpeg-devel
mailing list