From bc7a1262376677b8185daebf7db7c1cc5b30762f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 29 Jan 2023 15:02:03 +0100 Subject: sws_utils: add check for HAVE_ZIMG to suppress warnings --- video/sws_utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/sws_utils.c') diff --git a/video/sws_utils.c b/video/sws_utils.c index fb3e844cb0..3af60977ad 100644 --- a/video/sws_utils.c +++ b/video/sws_utils.c @@ -127,11 +127,13 @@ bool mp_sws_supported_format(int imgfmt) && sws_isSupportedOutput(av_format); } +#if HAVE_ZIMG static bool allow_zimg(struct mp_sws_context *ctx) { return ctx->force_scaler == MP_SWS_ZIMG || (ctx->force_scaler == MP_SWS_AUTO && ctx->allow_zimg); } +#endif static bool allow_sws(struct mp_sws_context *ctx) { @@ -337,7 +339,10 @@ int mp_sws_reinit(struct mp_sws_context *ctx) if (sws_init_context(ctx->sws, ctx->src_filter, ctx->dst_filter) < 0) return -1; +#if HAVE_ZIMG success: +#endif + ctx->force_reload = false; *ctx->cached = *ctx; return 1; -- cgit v1.2.3