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:
parent
e1736d0d0b
commit
a22faeb992
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue