1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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.

Fixes: 59c39a79ca
Signed-off-by: Niklas Haas <git@haasn.dev>
Sponsored-by: Sovereign Tech Fund
This commit is contained in:
Niklas Haas 2024-12-02 14:55:22 +01:00
parent 8cab5bdc69
commit ee903c4786

View File

@ -309,7 +309,7 @@ static int run_file_tests(const AVFrame *ref, FILE *fp, struct options opts)
src_fmt_str, &sw, &sh, dst_fmt_str, &dw, &dh,
&mode.flags, &mode.dither,
&mse[0], &mse[1], &mse[2], &mse[3]);
if (ret != 13) {
if (ret != 12) {
printf("%s", buf);
continue;
}