diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-16 19:14:06 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-22 04:13:17 +0100 |
commit | f9ceb18f3b26d792522536d32838c6795b8df20d (patch) | |
tree | 52d10da31d5a2686baf64352a0c29e3f59982f6a | |
parent | 51e10677291863e496cabcc71fe871628e869f2e (diff) | |
download | ffmpeg-f9ceb18f3b26d792522536d32838c6795b8df20d.tar.gz |
avformat/matroskaenc: Add support for FlagHearing/VisualImpaired
Reviewed-by: Ridley Combs <rcombs@rcombs.me>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r-- | libavformat/matroskaenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index c77f0a332b..e5efba5408 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -1193,6 +1193,11 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, } else { if (st->disposition & AV_DISPOSITION_COMMENT) put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGCOMMENTARY, 1); + if (st->disposition & AV_DISPOSITION_HEARING_IMPAIRED) + put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGHEARINGIMPAIRED, 1); + if (st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED) + put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGVISUALIMPAIRED, 1); + // look for a codec ID string specific to mkv to use, // if none are found, use AVI codes if (par->codec_id != AV_CODEC_ID_RAWVIDEO || par->codec_tag) { |