[FFmpeg-devel] [PATCH 07/11] tests/swscale: check supported inputs for legacy swscale separately
Niklas Haas
ffmpeg at haasn.xyz
Mon Mar 17 12:43:53 EET 2025
From: Niklas Haas <git at haasn.dev>
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 a2b960faa3..daf6cf769c 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) {
--
2.48.1
More information about the ffmpeg-devel
mailing list