[FFmpeg-cvslog] tests/swscale: check supported inputs for legacy swscale separately
Niklas Haas
git at videolan.org
Mon Mar 31 14:08:14 EEST 2025
ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Tue Feb 25 21:12:56 2025 +0100| [a22faeb992b2ac1d4b0e5222c02a65ac77aeb15b] | committer: Niklas Haas
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a22faeb992b2ac1d4b0e5222c02a65ac77aeb15b
---
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) {
More information about the ffmpeg-cvslog
mailing list