summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-12-11 16:10:41 +0100
committerAnton Khirnov <anton@khirnov.net>2022-07-23 11:53:19 +0200
commit48989efb7678a2a18392b17862ea661a4ca07758 (patch)
tree5a8248ee26ff98f90d6b94c20ec5ddb740f1d67a /fftools/ffmpeg_mux.c
parent4877842bb5c2481fb06b4c7e2b817c2c75120a75 (diff)
fftools/ffmpeg: access output file chapters through a wrapper
Avoid accessing the muxer context directly, as this will become forbidden in future commits.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 78395bebb4..19519052fe 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -382,3 +382,10 @@ int64_t of_filesize(OutputFile *of)
return ret;
}
+
+AVChapter * const *
+of_get_chapters(OutputFile *of, unsigned int *nb_chapters)
+{
+ *nb_chapters = of->ctx->nb_chapters;
+ return of->ctx->chapters;
+}