diff options
author | wm4 <wm4@nowhere> | 2020-05-09 17:56:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-09 18:02:57 +0200 |
commit | d61ced37ae39b4a2dcd49e783f3c292a8d97b14a (patch) | |
tree | cb11fd61cfded19b3941fe3332d53e07bbcda6b1 /video/sws_utils.c | |
parent | 43591ba96bf4409feaac2027cfe467824bdf7260 (diff) | |
download | mpv-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.c | 2 |
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"); |