History

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.

Niklas Haas committed 1 year ago

Commit a22faeb1 parent e1736d01 file · +1 −1Browse files

Unified · Split

libswscale/tests/swscale.c+1−1
@@ -251,7 +251,7 @@ static int run_test(enum AVPixelFormat src_fmt, enum AVPixelFormat dst_fmt, · 250 unmodified lines
251251 mode.flags, mode.dither,
252252 ssim[0], ssim[1], ssim[2], ssim[3]);
253253
254− if (!ssim_ref) {
254+ if (!ssim_ref && sws_isSupportedInput(src->format) && sws_isSupportedOutput(dst->format)) {
255255 /* Compare against the legacy swscale API as a reference */
256256 time_ref = av_gettime_relative();
257257 if (scale_legacy(dst, src, mode, opts) < 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t