summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-09 17:56:21 +0200
committerwm4 <wm4@nowhere>2020-05-09 18:02:57 +0200
commitd61ced37ae39b4a2dcd49e783f3c292a8d97b14a (patch)
treecb11fd61cfded19b3941fe3332d53e07bbcda6b1 /video/sws_utils.c
parent43591ba96bf4409feaac2027cfe467824bdf7260 (diff)
downloadmpv-d61ced37ae39b4a2dcd49e783f3c292a8d97b14a.tar.bz2
mpv-d61ced37ae39b4a2dcd49e783f3c292a8d97b14a.tar.xz
sws_utils: allow setting zimg options directly
One could wonder, why not just use the zimg wrapper directly?
Diffstat (limited to 'video/sws_utils.c')
-rw-r--r--video/sws_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/sws_utils.c b/video/sws_utils.c
index 1cce8ae4cd..faa61670b1 100644
--- a/video/sws_utils.c
+++ b/video/sws_utils.c
@@ -244,6 +244,8 @@ int mp_sws_reinit(struct mp_sws_context *ctx)
ctx->zimg->log = ctx->log;
ctx->zimg->src = *src;
ctx->zimg->dst = *dst;
+ if (ctx->zimg_opts)
+ ctx->zimg->opts = *ctx->zimg_opts;
if (mp_zimg_config(ctx->zimg)) {
ctx->zimg_ok = true;
MP_VERBOSE(ctx, "Using zimg.\n");