diff --git a/source/Lib/CommonLib/dtrace_blockstatistics.cpp b/source/Lib/CommonLib/dtrace_blockstatistics.cpp index 99042a6cfa4a8fcca39da5d3824f1d40448596eb..498f52de79d8a8af66beeceb0a38af2eeaa4ec0d 100644 --- a/source/Lib/CommonLib/dtrace_blockstatistics.cpp +++ b/source/Lib/CommonLib/dtrace_blockstatistics.cpp @@ -779,7 +779,9 @@ void writeAllCodedData(const CodingStructure & cs, const UnitArea & ctuArea) for (int ch = 0; ch < maxNumChannelType; ch++) { const ChannelType chType = ChannelType(ch); +#if !JVET_O0525_REMOVE_PCM const SPS& sps = *cs.sps; +#endif for (const CodingUnit &cu : cs.traverseCUs(CS::getArea(cs, ctuArea, chType), chType)) {