From 491942b63054750d7759698ebd14b36e1feeba7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9E=E7=90=A6?= Date: Mon, 8 May 2023 03:32:29 +0000 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E4=B8=89=E5=A4=84fprintf?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E5=B0=86=E6=80=BB=E8=AE=A14=E4=B8=AA%d?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA%u=EF=BC=88=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=8F=98=E9=87=8F=E5=9D=87=E4=B8=BAuint32=5Ft?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E6=95=85=E6=9B=B4=E6=94=B9=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 连琦 --- .../src/image/external/libwebp-1.0.2/examples/anim_diff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/SDL2/src/image/external/libwebp-1.0.2/examples/anim_diff.c b/components/SDL2/src/image/external/libwebp-1.0.2/examples/anim_diff.c index 7ffabc8fd4..9dedeb743d 100644 --- a/components/SDL2/src/image/external/libwebp-1.0.2/examples/anim_diff.c +++ b/components/SDL2/src/image/external/libwebp-1.0.2/examples/anim_diff.c @@ -106,7 +106,7 @@ static void MinimizeAnimationFrames(AnimatedImage* const img, int max_diff) { static int CompareValues(uint32_t a, uint32_t b, const char* output_str) { if (a != b) { - fprintf(stderr, "%s: %d vs %d\n", output_str, a, b); + fprintf(stderr, "%s: %u vs %u\n", output_str, a, b); return 0; } return 1; @@ -178,13 +178,13 @@ static int CompareAnimatedImagePair(const AnimatedImage* const img1, premultiply, &max_diff, &psnr); if (min_psnr > 0.) { if (psnr < min_psnr) { - fprintf(stderr, "Frame #%d, psnr = %.2lf (min_psnr = %f)\n", i, + fprintf(stderr, "Frame #%u, psnr = %.2lf (min_psnr = %f)\n", i, psnr, min_psnr); ok = 0; } } else { if (max_diff != 0) { - fprintf(stderr, "Frame #%d, max pixel diff: %d\n", i, max_diff); + fprintf(stderr, "Frame #%u, max pixel diff: %d\n", i, max_diff); ok = 0; } } -- Gitee