<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 3:59 PM <<a href="mailto:bhavna@multicorewareinc.com">bhavna@multicorewareinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Bhavna Hariharan <<a href="mailto:bhavna@multicorewareinc.com" target="_blank">bhavna@multicorewareinc.com</a>><br>
# Date 1540452308 -19800<br>
# Thu Oct 25 12:55:08 2018 +0530<br>
# Branch stable<br>
# Node ID 3e4a041742707f3d2a4a8bc36b419dda83cd982c<br>
# Parent 7e978ed93d6086973f87f607645339642ebb6ed0<br>
dynamic-refine: fix memory reset size<br>
<br>
diff -r 7e978ed93d60 -r 3e4a04174270 source/common/framedata.cpp<br>
--- a/source/common/framedata.cpp Wed Oct 10 11:39:28 2018 +0530<br>
+++ b/source/common/framedata.cpp Thu Oct 25 12:55:08 2018 +0530<br>
@@ -83,9 +83,9 @@<br>
memset(m_rowStat, 0, sps.numCuInHeight * sizeof(*m_rowStat));<br>
if (m_param->bDynamicRefine)<br>
{<br>
- memset(m_picCTU->m_collectCURd, 0, MAX_NUM_DYN_REFINE * sizeof(uint64_t));<br>
- memset(m_picCTU->m_collectCUVariance, 0, MAX_NUM_DYN_REFINE * sizeof(uint32_t));<br>
- memset(m_picCTU->m_collectCUCount, 0, MAX_NUM_DYN_REFINE * sizeof(uint32_t));<br>
+ memset(m_picCTU->m_collectCURd, 0, MAX_NUM_DYN_REFINE * sps.numCUsInFrame * sizeof(uint64_t));<br>
+ memset(m_picCTU->m_collectCUVariance, 0, MAX_NUM_DYN_REFINE * sps.numCUsInFrame * sizeof(uint32_t));<br>
+ memset(m_picCTU->m_collectCUCount, 0, MAX_NUM_DYN_REFINE * sps.numCUsInFrame * sizeof(uint32_t));<br>
}<br>
}<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org" target="_blank">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a></blockquote><div><br></div><div>Pushed to stable. </div></div></div>