summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-09-10 15:35:41 +0300
committerMartin Storsjö <martin@martin.st>2015-03-16 13:23:19 +0200
commit2cb9c2fc59c9267ad2631c07c81c188058502259 (patch)
tree2912430e30e9576c9ecfbefec1512fb995e2b403 /libavformat/movenc.h
parent50ff0c05b691524d1fd044a2f2eefb706932fc98 (diff)
movenc: Allow interleaving samples when writing fragmented files
This is incompatible with the omit_tfhd_offset flag (writing position independent fragments with interleaving requires the default_base_moof flag). This makes the moof atoms slightly bigger, but can be better for playback (improving locality of sample data in the mdat). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index f64efad689..eb059d915f 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -123,6 +123,7 @@ typedef struct MOVTrack {
int64_t data_offset;
int64_t frag_start;
int frag_discont;
+ int entries_flushed;
int nb_frag_info;
MOVFragmentInfo *frag_info;
@@ -172,6 +173,7 @@ typedef struct MOVMuxContext {
AVFormatContext *fc;
int use_editlist;
+ int frag_interleave;
} MOVMuxContext;
#define FF_MOV_FLAG_RTP_HINT (1 << 0)