1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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.
This commit is contained in:
Niklas Haas
2025-02-25 21:12:56 +01:00
parent e1736d0d0b
commit a22faeb992

View File

@ -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) {