[FFmpeg-devel] [PATCH] tests/swscale: fix sscanf return value check
Niklas Haas
ffmpeg at haasn.xyz
Wed Dec 4 12:43:47 EET 2024
From: Niklas Haas <git at haasn.dev>
We only parse 12 values, so this check always failed. Regression caused by
a change to the print format.
Fixes: 59c39a79cafdcb46972380aac5644f84059cd2a8
Signed-off-by: Niklas Haas <git at haasn.dev>
Sponsored-by: Sovereign Tech Fund
---
libswscale/tests/swscale.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index 737b94409c..3ed00f90a8 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -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;
}
--
2.47.0
More information about the ffmpeg-devel
mailing list