diff options
author | wm4 <wm4@nowhere> | 2014-08-16 17:07:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-16 17:10:08 +0200 |
commit | b822faa6cfdae2c530d68f257a811c6184d237a6 (patch) | |
tree | 073cee68af958d205b00648cfacc4439b6d5d471 /options/options.h | |
parent | e6e3bc7cd97e7dc27d91bbf89902191b4408cb40 (diff) | |
download | mpv-b822faa6cfdae2c530d68f257a811c6184d237a6.tar.bz2 mpv-b822faa6cfdae2c530d68f257a811c6184d237a6.tar.xz |
demux: add option to control the readahead buffer by a duration value
--demuxer-readahead-secs now controls how much the demuxer should
readahead by an amount of seconds. This is based on the raw packet
timestamps. It's not always very exact. For example, h264 in Matroska
does not store any linear timestamps (only PTS values which are going
to be reordered by the decoder), so this heuristic is usually off by
several hundred milliseconds.
The decision whether to readahead is basically OR-ed with the other
--demuxer-readahead-packets options. Change the manpage descriptions
to subtly convey these semantics.
Diffstat (limited to 'options/options.h')
-rw-r--r-- | options/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h index 65007bd22e..7b3bf4b69d 100644 --- a/options/options.h +++ b/options/options.h @@ -184,6 +184,7 @@ typedef struct MPOpts { int demuxer_thread; int demuxer_min_packs; int demuxer_min_bytes; + double demuxer_min_secs; char *audio_demuxer_name; char *sub_demuxer_name; int mkv_subtitle_preroll; |