From e167812406f97443d6422f4dd088a59db842f43a Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 12 Feb 2018 18:57:19 +0100 Subject: 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. --- demux/demux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demux') 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, -- cgit v1.2.3