You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
matroskaenc: Allow writing track "forced" flag
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
committed by
Luca Barbato
parent
d594dbecce
commit
da7e561964
@@ -769,6 +769,8 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
|
|||||||
// if we need to clear it.
|
// if we need to clear it.
|
||||||
if (!(st->disposition & AV_DISPOSITION_DEFAULT))
|
if (!(st->disposition & AV_DISPOSITION_DEFAULT))
|
||||||
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, !!(st->disposition & AV_DISPOSITION_FORCED));
|
||||||
|
|
||||||
if (codec->codec_type == AVMEDIA_TYPE_AUDIO && codec->initial_padding) {
|
if (codec->codec_type == AVMEDIA_TYPE_AUDIO && codec->initial_padding) {
|
||||||
mkv->tracks[i].ts_offset = av_rescale_q(codec->initial_padding,
|
mkv->tracks[i].ts_offset = av_rescale_q(codec->initial_padding,
|
||||||
|
Reference in New Issue
Block a user