From 4eec5b432beb9878d918bda5c5e1feacbf15d680 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 15 Mar 2015 23:26:18 +0100 Subject: 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. --- video/out/gl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3