[x265] [PATCH] lowres: initialize weightedCostDelta to avoid Valgrind reporting uninitialized memory
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Fri Feb 7 00:46:51 CET 2014
# 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
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));
More information about the x265-devel
mailing list