summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 908eb3c111..dbe16a76b9 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -627,7 +627,12 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
(AVRational){1, 1000000000});
t = av_dict_get(c->metadata, "title", NULL, 0);
demuxer_add_chapter(demuxer, t ? bstr0(t->value) : bstr0(NULL),
- start, end);
+ start, end, i);
+ AVDictionaryEntry *t = NULL;
+ while ((t = av_dict_get(c->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) {
+ demuxer_add_chapter_info(demuxer, i, bstr0(t->key),
+ bstr0(t->value));
+ }
}
add_new_streams(demuxer);