summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-05 13:34:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-09-05 13:34:37 +0200
commit2230d85cebee829ad773e6bf0873fca98d7bc410 (patch)
treeb0ee28074d4f16621b6024631bcffe979a96a4f7 /libavformat/avformat.h
parentb042712a875cbbaece4652aa572501a8cbc20051 (diff)
parent26b241c0791bfeb9df7b873da4dc74cce0c06be3 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: matroskaenc: Allow chapters to be written in trailer Conflicts: libavformat/matroskaenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 5c07887e9b..9dea62eb5f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1101,6 +1101,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;