<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 23, 2013 at 5:34 AM, Aarthi Thirumalai <span dir="ltr"><<a href="mailto:aarthi@multicorewareinc.com" target="_blank">aarthi@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"># HG changeset patch<br>
# User Aarthi Thirumalai<br>
</div># Date 1382524433 -19800<br>
#      Wed Oct 23 16:03:53 2013 +0530<br>
# Node ID 49ef6218538704a89f30c6d2aa77bf2166d4f0fe<br>
<div class="im"># Parent  6d96d64c4e9a2c526b57274760a7147241328cb3<br>
slicetype: bug fix for estimated frame costs<br></div></blockquote><div><br></div><div>Queued for stable, but with your longer explanation in the commit summary</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">
</div>diff -r 6d96d64c4e9a -r 49ef62185387 source/encoder/slicetype.cpp<br>
<div class="im">--- a/source/encoder/slicetype.cpp      Tue Oct 22 23:36:36 2013 +0530<br>
</div>+++ b/source/encoder/slicetype.cpp      Wed Oct 23 16:03:53 2013 +0530<br>
<div class="im HOEnZb">@@ -150,7 +150,7 @@<br>
         break;<br>
     case P_SLICE:<br>
         d0 = poc - l0poc;<br>
-        frames[0] = lastNonB;<br>
+        frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;<br>
         frames[d0] = &pic->m_lowres;<br>
         p0 = 0;<br>
         p1 = d0;<br>
@@ -162,7 +162,7 @@<br>
         {<br>
             // L1 reference is truly in the future<br>
             d1 = l1poc - poc;<br>
-            frames[0] = lastNonB;<br>
+            frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;<br>
             frames[d0] = &pic->m_lowres;<br>
             frames[d0 + d1] = &pic->getSlice()->getRefPic(REF_PIC_LIST_1, 0)->m_lowres;<br>
             p0 = 0;<br>
@@ -171,7 +171,7 @@<br>
         }<br>
         else<br>
         {<br>
-            frames[0] = lastNonB;<br>
+            frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;<br>
             frames[d0] = &pic->m_lowres;<br>
             p0 = 0;<br>
             p1 = d0;<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Steve Borho
</div></div>