diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-12-11 16:10:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-23 11:53:19 +0200 |
commit | 48989efb7678a2a18392b17862ea661a4ca07758 (patch) | |
tree | 5a8248ee26ff98f90d6b94c20ec5ddb740f1d67a /fftools/ffmpeg_mux.c | |
parent | 4877842bb5c2481fb06b4c7e2b817c2c75120a75 (diff) | |
download | ffmpeg-48989efb7678a2a18392b17862ea661a4ca07758.tar.gz |
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.c | 7 |
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; +} |