[x265] [PATCH] Change type of bufSize variable to size_t to avoid warning

ashok at multicorewareinc.com ashok at multicorewareinc.com
Tue Jan 16 14:56:56 CET 2018


# HG changeset patch
# User Ashok Kumar Mishra <ashok at multicorewareinc.com>
# Date 1516110926 -19800
#      Tue Jan 16 19:25:26 2018 +0530
# Node ID 46dbea16db6790ce7671818b67faca017be5fc02
# Parent  ffdb4a8eda9a69d10a5354a7b41b8a77bd2041d0
Change type of bufSize variable to size_t to avoid warning.

diff -r ffdb4a8eda9a -r 46dbea16db67 source/common/param.cpp
--- a/source/common/param.cpp	Sat Jan 13 00:37:31 2018 +0100
+++ b/source/common/param.cpp	Tue Jan 16 19:25:26 2018 +0530
@@ -1530,7 +1530,7 @@
 char *x265_param2string(x265_param* p, int padx, int pady)
 {
     char *buf, *s;
-    int bufSize = 4000 + p->rc.zoneCount * 64;
+    size_t bufSize = 4000 + p->rc.zoneCount * 64;
     if (p->numaPools)
         bufSize += strlen(p->numaPools);
     if (p->masteringDisplayColorVolume)


More information about the x265-devel mailing list