Ticket #813: 20121025-sao-lossless-ipcm-bugfix.patch
File 20121025-sao-lossless-ipcm-bugfix.patch, 976 bytes (added by kchono, 11 years ago) |
---|
-
source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp
1410 1410 uiStride = pcPicYuvRec->getStride(); 1411 1411 uiWidth = (g_uiMaxCUWidth >> uiDepth); 1412 1412 uiHeight = (g_uiMaxCUHeight >> uiDepth); 1413 if ( pcCU->isLosslessCoded(uiAbsZorderIdx) )1413 if ( pcCU->isLosslessCoded(uiAbsZorderIdx) && (pcCU->getIPCMFlag(uiAbsZorderIdx) == false) ) 1414 1414 { 1415 1415 uiPcmLeftShiftBit = 0; 1416 1416 } … … 1435 1435 uiStride = pcPicYuvRec->getCStride(); 1436 1436 uiWidth = ((g_uiMaxCUWidth >> uiDepth)/2); 1437 1437 uiHeight = ((g_uiMaxCUWidth >> uiDepth)/2); 1438 if ( pcCU->isLosslessCoded(uiAbsZorderIdx) )1438 if ( pcCU->isLosslessCoded(uiAbsZorderIdx) && (pcCU->getIPCMFlag(uiAbsZorderIdx) == false) ) 1439 1439 { 1440 1440 uiPcmLeftShiftBit = 0; 1441 1441 }