From d61ced37ae39b4a2dcd49e783f3c292a8d97b14a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2020 17:56:21 +0200 Subject: sws_utils: allow setting zimg options directly One could wonder, why not just use the zimg wrapper directly? --- video/sws_utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/sws_utils.c') 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"); -- cgit v1.2.3