<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 5, 2017 at 5:32 PM,  <span dir="ltr"><<a href="mailto:ashok@multicorewareinc.com" target="_blank">ashok@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Ashok Kumar Mishra <<a href="mailto:ashok@multicorewareinc.com">ashok@multicorewareinc.com</a>><br>
# Date 1507204558 -19800<br>
#      Thu Oct 05 17:25:58 2017 +0530<br>
# Node ID 4b95f82c9fb1f210d31acdd93370bf<wbr>ddbecea828<br>
# Parent  0cdb464618ee43674de02557910a02<wbr>3522cc9a9c<br>
Fixed inconsistent output for parallel frames and slices when abr is enabled<br></blockquote><div><br></div><div>Pushed to default branch</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r 0cdb464618ee -r 4b95f82c9fb1 source/encoder/frameencoder.<wbr>cpp<br>
--- a/source/encoder/frameencoder.<wbr>cpp   Mon Sep 25 10:31:17 2017 +0530<br>
+++ b/source/encoder/frameencoder.<wbr>cpp   Thu Oct 05 17:25:58 2017 +0530<br>
@@ -1730,6 +1730,7 @@<br>
     {<br>
         uint32_t rowCount = 0;<br>
         uint32_t maxRows = m_sliceBaseRow[sliceId + 1] - m_sliceBaseRow[sliceId];<br>
+<br>
         if (!m_rce.encodeOrder)<br>
             rowCount = maxRows - 1;<br>
         else if ((uint32_t)m_rce.encodeOrder <= 2 * (m_param->fpsNum / m_param->fpsDenom))<br>
@@ -1747,10 +1748,10 @@<br>
             }<br>
             else<br>
             {<br>
-                uint32_t startAddr = rowCount * numCols * sliceId;<br>
-                uint32_t finishAddr = startAddr + rowCount * numCols;<br>
+                uint32_t startAddr = m_sliceBaseRow[sliceId] * numCols;<br>
+                               uint32_t finishAddr = startAddr + rowCount * numCols;<br>
<br>
-                for (uint32_t cuAddr = startAddr; cuAddr < finishAddr; cuAddr++)<br>
+                               for (uint32_t cuAddr = startAddr; cuAddr < finishAddr; cuAddr++)<br>
                     m_rowSliceTotalBits[sliceId] += curEncData.m_cuStat[cuAddr].<wbr>totalBits;<br>
             }<br>
<br>
______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
</blockquote></div><br></div></div>