diff options
author | Aman Gupta <aman@tmm1.net> | 2018-04-15 18:39:45 -0700 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-04-17 01:01:50 +0300 |
commit | b8de7d6ff3749e1edc66b8c675c2cce41ef866d6 (patch) | |
tree | 1c15cfd9afffc62b6aa329ef265382debef74367 /demux/demux_lavf.c | |
parent | c2a24323bca735e68b002622c1083157f4efdf0c (diff) | |
download | mpv-b8de7d6ff3749e1edc66b8c675c2cce41ef866d6.tar.bz2 mpv-b8de7d6ff3749e1edc66b8c675c2cce41ef866d6.tar.xz |
demux, player: mark dependent tracks
ffmpeg marks audio tracks which are not meant to be played standalone
as DEPENDENT. these are typically used in DVB broadcasts for audio
descriptions, and are meant to be mixed into the main audio track during
playback.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index a8f631d142..0b74c84471 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -724,6 +724,8 @@ static void handle_new_stream(demuxer_t *demuxer, int i) sh->title = talloc_asprintf(sh, "visual impaired"); if (!sh->title && st->disposition & AV_DISPOSITION_HEARING_IMPAIRED) sh->title = talloc_asprintf(sh, "hearing impaired"); + if (st->disposition & AV_DISPOSITION_DEPENDENT) + sh->dependent_track = true; AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0); if (lang && lang->value) sh->lang = talloc_strdup(sh, lang->value); |