From 2cb9c2fc59c9267ad2631c07c81c188058502259 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 10 Sep 2013 15:35:41 +0300 Subject: movenc: Allow interleaving samples when writing fragmented files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- libavformat/movenc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/movenc.h') 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) -- cgit v1.2.3