summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-02-12 18:57:19 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-02-13 17:45:29 -0800
commite167812406f97443d6422f4dd088a59db842f43a (patch)
tree5bb2dc275c09f47747130ff3645549294ca9d0ee
parent2cce782527ca892124ec51dee417b9c565360178 (diff)
downloadmpv-e167812406f97443d6422f4dd088a59db842f43a.tar.bz2
mpv-e167812406f97443d6422f4dd088a59db842f43a.tar.xz
demux: lower demuxer cache default sizes
Reduce backward/forward from 400MB/400MB to 50MB/150MB. Too many complaints about high memory usage. Note that external tracks (like ytdl DASH with external audio tracks) will double the amounts, because an external track uses its own demuxer and cache.
-rw-r--r--demux/demux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c
index 64d2a7698a..7b8faa0c01 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -111,8 +111,8 @@ 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 = 400 * 1024 * 1024,
+ .max_bytes = 150 * 1024 * 1024,
+ .max_bytes_bw = 50 * 1024 * 1024,
.min_secs = 1.0,
.min_secs_cache = 10.0 * 60 * 60,
.seekable_cache = -1,