diff options
author | Niklas Haas <git@haasn.dev> | 2025-02-25 21:12:56 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2025-03-31 12:19:08 +0200 |
commit | a22faeb992b2ac1d4b0e5222c02a65ac77aeb15b (patch) | |
tree | 61a7e0bf815f9f4b3ea3407c6b5aa12c94474aa5 | |
parent | e1736d0d0bc50d32ae85e76695bd53b25f26726d (diff) | |
download | ffmpeg-a22faeb992b2ac1d4b0e5222c02a65ac77aeb15b.tar.gz |
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.
-rw-r--r-- | libswscale/tests/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |