Ticket #549: Fix-Ticket549.r2419.patch

File Fix-Ticket549.r2419.patch, 960 bytes (added by hao, 10 years ago)
  • source/Lib/TLibCommon/TComDataCU.cpp

     
    18621862    {
    18631863      return getPic()->getCU( getAddr() )->getLastCodedQP( getZorderIdxInCU() );
    18641864    }
    1865     else if ( getAddr() > 0 )
     1865    else if ( getPic()->getPicSym()->getInverseCUOrderMap(getAddr()) > 0
     1866      && getPic()->getPicSym()->getTileIdxMap(getAddr()) == getPic()->getPicSym()->getTileIdxMap(getPic()->getPicSym()->getCUOrderMap(getPic()->getPicSym()->getInverseCUOrderMap(getAddr())-1)) )
    18661867    {
    1867       return getPic()->getCU( getAddr()-1 )->getLastCodedQP( getPic()->getNumPartInCU() );
     1868      return getPic()->getCU( getPic()->getPicSym()->getCUOrderMap(getPic()->getPicSym()->getInverseCUOrderMap(getAddr())-1) )->getLastCodedQP( getPic()->getNumPartInCU() );
    18681869    }
    18691870    else
    18701871    {