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.
This commit is contained in:
Niklas Haas
2015-03-16 09:29:52 +01:00
committed by wm4
parent 0329b81354
commit 4eec5b432b
+1 -1
View File
@@ -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);
}
}