[FFmpeg-cvslog] matroskaenc: Allow writing track "forced" flag

John Stebbins git at videolan.org
Wed Feb 25 01:19:20 CET 2015


ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Tue Feb 24 12:44:48 2015 -0800| [da7e561964ee833678dc24fae0b0265358126d1e] | committer: Luca Barbato

matroskaenc: Allow writing track "forced" flag

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da7e561964ee833678dc24fae0b0265358126d1e
---

 libavformat/matroskaenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index cab43f4..8688616 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -769,6 +769,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
     // if we need to clear it.
     if (!(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, !!(st->disposition & AV_DISPOSITION_FORCED));
 
     if (codec->codec_type == AVMEDIA_TYPE_AUDIO && codec->initial_padding) {
         mkv->tracks[i].ts_offset = av_rescale_q(codec->initial_padding,



More information about the ffmpeg-cvslog mailing list