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

Ashok Kumar Mishra ashok at multicorewareinc.com
Tue Jan 16 15:07:10 CET 2018


On Tue, Jan 16, 2018 at 7:26 PM, <ashok at multicorewareinc.com> wrote:

> # 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)
>

Pushed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180116/83c92ab0/attachment.html>


More information about the x265-devel mailing list