summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-15 23:26:18 +0100
committerwm4 <wm4@nowhere>2015-03-16 09:29:52 +0100
commit4eec5b432beb9878d918bda5c5e1feacbf15d680 (patch)
tree64ad0af3271fbb72ef5ad763c9f93296751c8149 /video
parent0329b8135474f74b31737da78ae6671b62fa007f (diff)
downloadmpv-4eec5b432beb9878d918bda5c5e1feacbf15d680.tar.bz2
mpv-4eec5b432beb9878d918bda5c5e1feacbf15d680.tar.xz
vo_opengl: improve queue size heuristic
The default scaling was a slight bit too low, which could cause buffer underruns in some cases. This should improve the result when using tscale filters other than oversample. The oversample case should be unaffected.
Diffstat (limited to 'video')
-rw-r--r--video/out/gl_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c
index ffe1aaaab9..c3b542d358 100644
--- a/video/out/gl_video.c
+++ b/video/out/gl_video.c
@@ -2442,7 +2442,7 @@ void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts,
if (kernel) {
double radius = kernel->radius;
radius = radius > 0 ? radius : p->opts.scaler_radius[2];
- *queue_size = 50e3 * (ceil(radius) - 1);
+ *queue_size = 50e3 * ceil(radius);
}
}