changeset 4126:7bbdd9cb086f

Force numPics in RPS <= maxDecPicBuffering - 1 because maxDecPicBuffering is now set to numReferences+-1
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Thu, 26 Sep 2013 11:39:28 +0530
parents 0dbfb0bbca1a
children baaefda928fa
files source/encoder/dpb.cpp
diffstat 1 files changed, 1 insertions(+-), 1 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/dpb.cpp	Wed Sep 25 14:34:49 2013 +0530
+++ b/source/encoder/dpb.cpp	Thu Sep 26 11:39:28 2013 +0530
@@ -202,7 +202,7 @@ void DPB::computeRPS(int curPoc, bool is
     unsigned int poci = 0, numNeg = 0, numPos = 0;
 
     TComList<TComPic*>::iterator iterPic = m_picList.begin();
-    while ((iterPic != m_picList.end()) && (poci < maxDecPicBuffer))
+    while ((iterPic != m_picList.end()) && (poci < maxDecPicBuffer - 1))
     {
         refPic = *(iterPic);
         if ((refPic->getPOC() != curPoc) && (refPic->getSlice()->isReferenced()))