From 2b1656b1aced3d81b31c83e8c310a630ca5d5d1c Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Fri, 10 Jun 2016 12:53:31 +0000 Subject: vo_opengl: increase the size limit for cached file This is mainly for the nnedi3 user shader. With all whose NN weights hardcoded into the shader source code, the shader file could be as large as 300 kB. --- video/out/opengl/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/video.c') diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index e23bfb4edf..21eda6bc7d 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -520,7 +520,7 @@ static struct bstr load_cached_file(struct gl_video *p, const char *path) return p->files[n].body; } // not found -> load it - struct bstr s = stream_read_file(path, p, p->global, 100000); // 100 kB + struct bstr s = stream_read_file(path, p, p->global, 1024000); // 1024 kB if (s.len) { struct cached_file new = { .path = talloc_strdup(p, path), -- cgit v1.2.3