[x265] [PATCH] lowres: initialize weightedCostDelta to avoid Valgrind reporting uninitialized memory

Steve Borho steve at borho.org
Wed Feb 5 18:34:37 CET 2014


On Thu, Feb 6, 2014 at 5:46 PM, <gopu at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Gopu Govindaswamy
> # Date 1391730404 28800
> #      Thu Feb 06 15:46:44 2014 -0800
> # Node ID e46200fced768a256a76a11b80da387ab8391a24
> # Parent  e2aaeaa85c037fa45da39920e96ecac9bce1bf4e
> lowres: initialize weightedCostDelta to avoid Valgrind reporting
> uninitialized memory
>

queued, thanks


> diff -r e2aaeaa85c03 -r e46200fced76 source/common/lowres.cpp
> --- a/source/common/lowres.cpp  Thu Feb 06 13:26:50 2014 -0800
> +++ b/source/common/lowres.cpp  Thu Feb 06 15:46:44 2014 -0800
> @@ -135,6 +135,7 @@
>      leadingBframes = 0;
>      satdCost = (int64_t)-1;
>      memset(costEst, -1, sizeof(costEst));
> +    memset(weightedCostDelta, 0, sizeof(weightedCostDelta));
>
>      if (qpAqOffset && invQscaleFactor)
>          memset(costEstAq, -1, sizeof(costEstAq));
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>



-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140205/8b9cc330/attachment.html>


More information about the x265-devel mailing list