From a22faeb992b2ac1d4b0e5222c02a65ac77aeb15b Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Tue, 25 Feb 2025 21:12:56 +0100 Subject: [PATCH] tests/swscale: check supported inputs for legacy swscale separately The new code path supports more formats, so we can't test them all against the legacy implementation. --- libswscale/tests/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c index 572eab20c8..82065719ab 100644 --- a/libswscale/tests/swscale.c +++ b/libswscale/tests/swscale.c @@ -251,7 +251,7 @@ static int run_test(enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, mode.flags, mode.dither, ssim[0], ssim[1], ssim[2], ssim[3]); - if (!ssim_ref) { + if (!ssim_ref && sws_isSupportedInput(src->format) && sws_isSupportedOutput(dst->format)) { /* Compare against the legacy swscale API as a reference */ time_ref = av_gettime_relative(); if (scale_legacy(dst, src, mode, opts) < 0) {