You've already forked FFmpeg
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:
@ -251,7 +251,7 @@ static int run_test(enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt,
|
|||||||
mode.flags, mode.dither,
|
mode.flags, mode.dither,
|
||||||
ssim[0], ssim[1], ssim[2], ssim[3]);
|
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 */
|
/* Compare against the legacy swscale API as a reference */
|
||||||
time_ref = av_gettime_relative();
|
time_ref = av_gettime_relative();
|
||||||
if (scale_legacy(dst, src, mode, opts) < 0) {
|
if (scale_legacy(dst, src, mode, opts) < 0) {
|
||||||
|
Reference in New Issue
Block a user