aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-30 00:21:00 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-01 03:53:13 +0100
commitec20fc15818598aaf83232db3df2c85b1752c49a (patch)
tree1842cab277a64ebdf52b612215617b4b98b5850a /libavformat/avformat.h
parent31f9032b786c1788f6295f5d3fd07622229010b1 (diff)
downloadffmpeg-ec20fc15818598aaf83232db3df2c85b1752c49a.tar.gz
lavf: allow grouping packets in chunks of a user specified size and duration.
This is similar to MP4Boxs -inter Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 156e83c668..f1c701d03f 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -700,6 +700,9 @@ typedef struct AVStream {
*/
int stream_identifier;
+ int64_t interleaver_chunk_size;
+ int64_t interleaver_chunk_duration;
+
/**
* Stream informations used internally by av_find_stream_info()
*/
@@ -1086,6 +1089,22 @@ typedef struct AVFormatContext {
*/
int audio_preload;
+ /**
+ * Max chunk time in microseconds.
+ * Note, not all formats support this and unpredictable things may happen if it is used when not supported.
+ * - encoding: Set by user via AVOptions (NO direct access)
+ * - decoding: unused
+ */
+ int max_chunk_duration;
+
+ /**
+ * Max chunk size in bytes
+ * Note, not all formats support this and unpredictable things may happen if it is used when not supported.
+ * - encoding: Set by user via AVOptions (NO direct access)
+ * - decoding: unused
+ */
+ int max_chunk_size;
+
/*****************************************************************
* All fields below this line are not part of the public API. They
* may not be used outside of libavformat and can be changed and