History

tests/swscale: fix sscanf return value check

We only parse 12 values, so this check always failed. Regression caused by a change to the print format.

Niklas Haas committed 1 year ago

Commit ee903c41 parent 8cab5bd1 file · +1 −1Browse files

Unified · Split

libswscale/tests/swscale.c+1−1
@@ -309,7 +309,7 @@ static int run_file_tests(const AVFrame *ref, FILE *fp, struct options opts) · 308 unmodified lines
309 src_fmt_str, &sw, &sh, dst_fmt_str, &dw, &dh,309 src_fmt_str, &sw, &sh, dst_fmt_str, &dw, &dh,
310 &mode.flags, &mode.dither,310 &mode.flags, &mode.dither,
311 &mse[0], &mse[1], &mse[2], &mse[3]);311 &mse[0], &mse[1], &mse[2], &mse[3]);
312 if (ret != 13) {312 if (ret != 12) {
313 printf("%s", buf);313 printf("%s", buf);
314 continue;314 continue;
315 }315 }

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