[x265] [PATCH] Correct the format specifier in malloc error msg
Richard
ccc7922 at foxmail.com
Sat Mar 28 01:01:46 UTC 2026
From: Mr-Z-2697 <74594146+Mr-Z-2697 at users.noreply.github.com>
---
source/common/common.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/common/common.h b/source/common/common.h
index ff60a85fe..547193e2a 100644
--- a/source/common/common.h
+++ b/source/common/common.h
@@ -233,7 +233,7 @@ typedef int16_t coeff_t; // transform coefficient
var = (type*)x265_malloc(sizeof(type) * (count)); \
if (!var) \
{ \
- x265_log(NULL, X265_LOG_ERROR, "malloc of size %d failed\n", sizeof(type) * (count)); \
+ x265_log(NULL, X265_LOG_ERROR, "malloc of size %llu failed\n", sizeof(type) * (count)); \
goto fail; \
} \
}
@@ -244,7 +244,7 @@ typedef int16_t coeff_t; // transform coefficient
memset((void*)var, 0, sizeof(type) * (count)); \
else \
{ \
- x265_log(NULL, X265_LOG_ERROR, "malloc of size %d failed\n", sizeof(type) * (count)); \
+ x265_log(NULL, X265_LOG_ERROR, "malloc of size %llu failed\n", sizeof(type) * (count)); \
goto fail; \
} \
}
--
2.53.0.windows.2
More information about the x265-devel
mailing list