summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-03-17 14:19:31 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-03-18 14:30:07 +0000
commit414d6547f33175b3f53eb3320aa13161a584a151 (patch)
tree3ba0050e56d116866d6074df1b14943709f8a529 /libavformat/isom.h
parentfbb9ef5b1727b9d133987617afad7a9f62781d9d (diff)
mov: Add option to keep exact packet sequence after seeking
The current behavior may produce a different sequence of packets after seeking, compared to demuxing linearly from the beginning. This is because the MOV demuxer seeks in each stream individually, based on timestamp, which may set each stream at a slightly different position than if the file would have been read sequentially. This makes implementing certain operations, such as segmenting, quite hard, and slower than need be. Therefore, add an option which retains the same packet sequence after seeking, as when a file is demuxed linearly.
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index d233839dab..5d48989fd9 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -186,6 +186,7 @@ typedef struct MOVContext {
int chapter_track;
int use_absolute_path;
int ignore_editlist;
+ int seek_individually;
int64_t next_root_atom; ///< offset of the next root atom
int export_all;
int export_xmp;