aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorJohn Stebbins <stebbins@jetheaddev.com>2013-09-03 10:53:34 -0700
committerAnton Khirnov <anton@khirnov.net>2013-09-04 20:30:43 +0200
commit26b241c0791bfeb9df7b873da4dc74cce0c06be3 (patch)
tree9dba310357d9bfdaa622d5f6e12bd3e20b196361 /libavformat/avformat.h
parenta711a2cb473dc95708f371a82c85c97fe789b5c2 (diff)
downloadffmpeg-26b241c0791bfeb9df7b873da4dc74cce0c06be3.tar.gz
matroskaenc: Allow chapters to be written in trailer
This allows creation of frame accurate chapter marks from sources like DVD and BD where the precise chapter location is not known until the chapter mark has been reached during reading. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 1399de052b..12462c8291 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -948,6 +948,17 @@ typedef struct AVFormatContext {
*/
unsigned int max_picture_buffer;
+ /**
+ * Number of chapters in AVChapter array.
+ * When muxing, chapters are normally written in the file header,
+ * so nb_chapters should normally be initialized before write_header
+ * is called. Some muxers (e.g. mov and mkv) can also write chapters
+ * in the trailer. To write chapters in the trailer, nb_chapters
+ * must be zero when write_header is called and non-zero when
+ * write_trailer is called.
+ * muxing : set by user
+ * demuxing: set by libavformat
+ */
unsigned int nb_chapters;
AVChapter **chapters;