summaryrefslogtreecommitdiff
path: root/libavformat/movenc.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2014-10-21 11:42:27 +0300
committerMartin Storsjö <martin@martin.st>2014-11-17 16:17:07 +0200
commit40ed1cbf147d09fc0894bee160f0b6b6d9159fc5 (patch)
treef7a74697c9c2f887308f904bf98bfd96aac90a1b /libavformat/movenc.h
parent3847f3ab58b3b74604807394247bf68827258103 (diff)
movenc: Allow writing a DASH sidx atom at the start of files
This is mapped to the faststart flag (which in this case perhaps should be called "shift and write index at the start of the file"), which for fragmented files will write a sidx index at the start. When segmenting DASH into files, there's usually one sidx at the start of each segment (although it's not clear to me whether that actually is necessary). When storing all of it in one file, the MPD doesn't necessarily need to describe the individual segments, but the offsets of the fragments can be fetched from one large sidx atom at the start of the file. This allows creating files for the DASH ISO BMFF on-demand profile. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/movenc.h')
-rw-r--r--libavformat/movenc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/movenc.h b/libavformat/movenc.h
index 2a40b2fb61..4483b69e04 100644
--- a/libavformat/movenc.h
+++ b/libavformat/movenc.h
@@ -73,6 +73,7 @@ typedef struct MOVFragmentInfo {
int64_t time;
int64_t duration;
int64_t tfrf_offset;
+ int size;
} MOVFragmentInfo;
typedef struct MOVTrack {