[x265] [PATCH] cudata: init mvmemblock with zero

santhoshini at multicorewareinc.com santhoshini at multicorewareinc.com
Fri Dec 23 05:48:59 CET 2016


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1482401694 -19800
#      Thu Dec 22 15:44:54 2016 +0530
# Branch stable
# Node ID 1c8b8daacec009b124ebe6d937abea06b293113a
# Parent  ce19aaa0637df84d56fc985b0062c7fe2664cdf6
cudata: init mvmemblock with zero

diff --git a/source/common/cudata.h b/source/common/cudata.h
--- a/source/common/cudata.h
+++ b/source/common/cudata.h
@@ -358,7 +358,7 @@
             CHECKED_MALLOC(trCoeffMemBlock, coeff_t, (sizeL + sizeC * 2) * numInstances);
         }
         CHECKED_MALLOC(charMemBlock, uint8_t, numPartition * numInstances * CUData::BytesPerPartition);
-        CHECKED_MALLOC(mvMemBlock, MV, numPartition * 4 * numInstances);
+        CHECKED_MALLOC_ZERO(mvMemBlock, MV, numPartition * 4 * numInstances);
         return true;
 
     fail:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 831 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20161223/a6ad231d/attachment.bin>


More information about the x265-devel mailing list