Ticket #1366: fix.patch

File fix.patch, 614 bytes (added by gregory, 10 years ago)
  • source/Lib/TLibDecoder/TDecSbac.cpp

    diff --git a/source/Lib/TLibDecoder/TDecSbac.cpp b/source/Lib/TLibDecoder/TDecSbac.cpp
    index c89d758..5b5dcea 100644
    a b Void TDecSbac::parseCrossComponentPrediction( TComTU &rTu, ComponentID compID ) 
    843843{
    844844  TComDataCU *pcCU = rTu.getCU();
    845845
    846   if( isLuma(compID) || !pcCU->getSlice()->getPPS()->getUseCrossComponentPrediction() )
     846  if( isLuma(compID) || !pcCU->getSlice()->getPPS()->getUseCrossComponentPrediction() ||
     847      pcCU->getSlice()->getSPS()->getChromaFormatIdc() != CHROMA_444)
    847848  {
    848849    return;
    849850  }