0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_gpu_next: fix blur and taper values being zero

This would always apply the config blur and taper values to the kernel,
even if it was zero because the user didn't specify any.
This commit is contained in:
llyyr 2023-09-18 01:29:51 +05:30 committed by Niklas Haas
parent ed5c744aa9
commit 5efc04006b

View File

@ -1801,8 +1801,10 @@ static const struct pl_filter_config *map_scaler(struct priv *p,
} }
par->config.clamp = cfg->clamp; par->config.clamp = cfg->clamp;
par->config.blur = cfg->kernel.blur; if (cfg->kernel.blur > 0.0)
par->config.taper = cfg->kernel.taper; par->config.blur = cfg->kernel.blur;
if (cfg->kernel.taper > 0.0)
par->config.taper = cfg->kernel.taper;
if (cfg->radius > 0.0) { if (cfg->radius > 0.0) {
if (par->config.kernel->resizable) { if (par->config.kernel->resizable) {
#if PL_API_VER >= 303 #if PL_API_VER >= 303