From 768448305292f50c72533597c25992b70e8e42ac Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 19 Oct 2016 11:54:47 -0700 Subject: demux_lavf: set title on hearing and visual impaired tracks --- demux/demux_lavf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'demux') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 0188801aba..7857934642 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -699,6 +699,10 @@ static void handle_new_stream(demuxer_t *demuxer, int i) AVDictionaryEntry *title = av_dict_get(st->metadata, "title", NULL, 0); if (title && title->value) sh->title = talloc_strdup(sh, title->value); + if (!sh->title && st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED) + sh->title = talloc_asprintf(sh, "visual impaired"); + if (!sh->title && st->disposition & AV_DISPOSITION_HEARING_IMPAIRED) + sh->title = talloc_asprintf(sh, "hearing impaired"); AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0); if (lang && lang->value) sh->lang = talloc_strdup(sh, lang->value); -- cgit v1.2.3