From 8aef2c9162eb192c86d8e69d708d7db301c729e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 1 May 2026 04:06:26 +0200 Subject: [PATCH] demux_lavf: map `comment` to stream title Lavf HLS demmuxer put rendition names into `comment`, this is basically a title in our usage. --- demux/demux_lavf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 3182a344dd..d2b571563a 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -851,6 +851,9 @@ 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); + AVDictionaryEntry *comment = av_dict_get(st->metadata, "comment", NULL, 0); + if (!sh->title && comment && comment->value) + sh->title = talloc_strdup(sh, comment->value); 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);