demux_lavf: remove track flags duplication from title

Those flags are already exposed, and users can format it as they wont.
Don't produce some dummy titles.
This commit is contained in:
Kacper Michajłow
2026-05-01 06:09:27 +02:00
parent a44478d79f
commit ec03ef7e97
-8
View File
@@ -851,14 +851,6 @@ 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");
if (!sh->title && st->disposition & AV_DISPOSITION_ORIGINAL)
sh->title = talloc_asprintf(sh, "original");
if (!sh->title && st->disposition & AV_DISPOSITION_COMMENT)
sh->title = talloc_asprintf(sh, "commentary");
AVDictionaryEntry *lang = av_dict_get(st->metadata, "language", NULL, 0);
if (lang && lang->value && strcmp(lang->value, "und") != 0)
sh->lang = talloc_strdup(sh, lang->value);