summaryrefslogtreecommitdiff
path: root/libavformat/demux.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-06 20:27:20 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-05-10 07:42:07 +0200
commitff0e8e14c3e9d1003153324d0368735dd84cb4b7 (patch)
tree23d2efbf83f17295cc44a50ef28bfa3d28009ac7 /libavformat/demux.h
parent8550a05ece37cbb777deb221cce43b5f3345137b (diff)
avformat/utils: Move avpriv_new_chapter to demux_utils.c
It is demuxer-only: Muxers deal only with chapters given to them; they don't create any of their own. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/demux.h')
-rw-r--r--libavformat/demux.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavformat/demux.h b/libavformat/demux.h
index ff8d998d56..d857e4dafb 100644
--- a/libavformat/demux.h
+++ b/libavformat/demux.h
@@ -173,4 +173,18 @@ void ff_rescale_interval(AVRational tb_in, AVRational tb_out,
void avpriv_stream_set_need_parsing(AVStream *st, enum AVStreamParseType type);
+/**
+ * Add a new chapter.
+ *
+ * @param s media file handle
+ * @param id unique ID for this chapter
+ * @param start chapter start time in time_base units
+ * @param end chapter end time in time_base units
+ * @param title chapter title
+ *
+ * @return AVChapter or NULL on error
+ */
+AVChapter *avpriv_new_chapter(AVFormatContext *s, int64_t id, AVRational time_base,
+ int64_t start, int64_t end, const char *title);
+
#endif /* AVFORMAT_DEMUX_H */