Ticket #813: 20121025-sao-lossless-ipcm-bugfix.patch

File 20121025-sao-lossless-ipcm-bugfix.patch, 976 bytes (added by kchono, 9 years ago)
  • source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp

     
    14101410    uiStride  = pcPicYuvRec->getStride();
    14111411    uiWidth  = (g_uiMaxCUWidth >> uiDepth);
    14121412    uiHeight = (g_uiMaxCUHeight >> uiDepth);
    1413     if ( pcCU->isLosslessCoded(uiAbsZorderIdx) )
     1413    if ( pcCU->isLosslessCoded(uiAbsZorderIdx) && (pcCU->getIPCMFlag(uiAbsZorderIdx) == false) )
    14141414    {
    14151415      uiPcmLeftShiftBit = 0;
    14161416    }
     
    14351435    uiStride = pcPicYuvRec->getCStride();
    14361436    uiWidth  = ((g_uiMaxCUWidth >> uiDepth)/2);
    14371437    uiHeight = ((g_uiMaxCUWidth >> uiDepth)/2);
    1438     if ( pcCU->isLosslessCoded(uiAbsZorderIdx) )
     1438    if ( pcCU->isLosslessCoded(uiAbsZorderIdx) && (pcCU->getIPCMFlag(uiAbsZorderIdx) == false) )
    14391439    {
    14401440      uiPcmLeftShiftBit = 0;
    14411441    }