summaryrefslogtreecommitdiff
path: root/libavformat/isom.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-03-16 20:08:35 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2015-03-18 14:28:56 +0000
commit8692d74b7364b405d7939c0ed347e8a2815193a7 (patch)
tree2ff76c21f80b4d3304c5785268ca46e0378c9b26 /libavformat/isom.h
parent58a840e21577a2168843487a98cb2cea44b5a94a (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 c24b962ae5..d81d4358a2 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -155,6 +155,7 @@ typedef struct MOVContext {
unsigned trex_count;
int itunes_metadata; ///< metadata are itunes style
int chapter_track;
+ int seek_individually;
int64_t next_root_atom; ///< offset of the next root atom
int export_all;
int export_xmp;