summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-11-10 12:37:19 +0100
committerwm4 <wm4@nowhere>2017-11-10 12:37:19 +0100
commit6bcdcaeeeabf3845bb69cadfb281089d434cb306 (patch)
treec3b370ade6531a7798eaa1e31ce3aba78f86038b /demux
parentb0de1ac36c7b16ff4f2763421b86ebedeba2044b (diff)
downloadmpv-6bcdcaeeeabf3845bb69cadfb281089d434cb306.tar.bz2
mpv-6bcdcaeeeabf3845bb69cadfb281089d434cb306.tar.xz
demux: set default back buffer to some high value
Some back buffer is required to make the immediate forward range seekable. This is because the back buffer limit is strictly enforced. Just set a rather high back buffer by default. It's not use if --demuxer-seekable-cache is disabled, so this is without risk.
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 0075df8b72..2a46ac730f 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -111,7 +111,7 @@ const struct m_sub_options demux_conf = {
.size = sizeof(struct demux_opts),
.defaults = &(const struct demux_opts){
.max_bytes = 400 * 1024 * 1024,
- .max_bytes_bw = 0,
+ .max_bytes_bw = 400 * 1024 * 1024,
.min_secs = 1.0,
.min_secs_cache = 10.0,
.access_references = 1,