[x265] [PATCH] slicetype: bug fix for estimated frame costs

Aarthi Thirumalai aarthi at multicorewareinc.com
Wed Oct 23 12:34:38 CEST 2013


# HG changeset patch
# User Aarthi Thirumalai
# Date 1382524433 -19800
#      Wed Oct 23 16:03:53 2013 +0530
# Node ID 49ef6218538704a89f30c6d2aa77bf2166d4f0fe
# Parent  6d96d64c4e9a2c526b57274760a7147241328cb3
slicetype: bug fix for estimated frame costs

diff -r 6d96d64c4e9a -r 49ef62185387 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Tue Oct 22 23:36:36 2013 +0530
+++ b/source/encoder/slicetype.cpp	Wed Oct 23 16:03:53 2013 +0530
@@ -150,7 +150,7 @@
         break;
     case P_SLICE:
         d0 = poc - l0poc;
-        frames[0] = lastNonB;
+        frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;
         frames[d0] = &pic->m_lowres;
         p0 = 0;
         p1 = d0;
@@ -162,7 +162,7 @@
         {
             // L1 reference is truly in the future
             d1 = l1poc - poc;
-            frames[0] = lastNonB;
+            frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;
             frames[d0] = &pic->m_lowres;
             frames[d0 + d1] = &pic->getSlice()->getRefPic(REF_PIC_LIST_1, 0)->m_lowres;
             p0 = 0;
@@ -171,7 +171,7 @@
         }
         else
         {
-            frames[0] = lastNonB;
+            frames[0] = &pic->getSlice()->getRefPic(REF_PIC_LIST_0, 0)->m_lowres;
             frames[d0] = &pic->m_lowres;
             p0 = 0;
             p1 = d0;


More information about the x265-devel mailing list