summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-06-24 16:11:17 +0200
committerNiklas Haas <git@haasn.dev>2022-06-24 16:11:17 +0200
commit3a2838c88d428ced32a562a0361f2a89ec0fda27 (patch)
treef8b36b8b922786fdb0e6e8a33c24c020866bbbd9
parent8da6b355f84381f932281a290a7a416ea4e7b3f2 (diff)
downloadmpv-3a2838c88d428ced32a562a0361f2a89ec0fda27.tar.bz2
mpv-3a2838c88d428ced32a562a0361f2a89ec0fda27.tar.xz
vo_gpu_next: implement --cscale
Fixes #9451
-rw-r--r--video/out/vo_gpu_next.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c
index 3727c072f6..2bdda0275f 100644
--- a/video/out/vo_gpu_next.c
+++ b/video/out/vo_gpu_next.c
@@ -1608,6 +1608,9 @@ static void update_render_options(struct vo *vo)
// Map scaler options as best we can
p->params.upscaler = map_scaler(p, SCALER_SCALE);
p->params.downscaler = map_scaler(p, SCALER_DSCALE);
+#if PL_API_VER >= 207
+ p->params.plane_upscaler = map_scaler(p, SCALER_CSCALE);
+#endif
p->frame_mixer = opts->interpolation ? map_scaler(p, SCALER_TSCALE) : NULL;
// Request as many frames as required from the decoder