The new code path supports more formats, so we can't test them all against the legacy implementation.
Unified · Split
| @@ -251,7 +251,7 @@ static int run_test(enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, · 250 unmodified lines | ||
| 251 | 251 | mode.flags, mode.dither, |
| 252 | 252 | ssim[0], ssim[1], ssim[2], ssim[3]); |
| 253 | 253 | |
| 254 | − if (!ssim_ref) { | |
| 254 | + if (!ssim_ref && sws_isSupportedInput(src->format) && sws_isSupportedOutput(dst->format)) { | |
| 255 | 255 | /* Compare against the legacy swscale API as a reference */ |
| 256 | 256 | time_ref = av_gettime_relative(); |
| 257 | 257 | if (scale_legacy(dst, src, mode, opts) < 0) { |