Ticket #892: qpinheritancefix.patch

File qpinheritancefix.patch, 1.1 KB (added by gordon, 12 years ago)
  • C:/users/gordon/work/265/HM-9.1-qpinheritancefix/source/Lib/TLibDecoder/TDecCu.cpp

     
    250250      Bool bSubInSlice = pcCU->getSCUAddr()+uiIdx+uiQNumParts>pcSlice->getDependentSliceCurStartCUAddr();
    251251      if ( bSubInSlice )
    252252      {
    253         if ( ( uiLPelX < pcCU->getSlice()->getSPS()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getSPS()->getPicHeightInLumaSamples() ) )
     253        if ( !ruiIsLast && ( uiLPelX < pcCU->getSlice()->getSPS()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getSPS()->getPicHeightInLumaSamples() ) )
    254254        {
    255255          xDecodeCU( pcCU, uiIdx, uiDepth+1, ruiIsLast );
    256256        }
     
    259259          pcCU->setOutsideCUPart( uiIdx, uiDepth+1 );
    260260        }
    261261      }
    262       if(ruiIsLast)
    263       {
    264         break;
    265       }
    266262     
    267263      uiIdx += uiQNumParts;
    268264    }