diff --git a/source/App/DecoderApp/DecApp.cpp b/source/App/DecoderApp/DecApp.cpp index a0717b2fe9e77803b1e679c515b620e0e9f6c1bb..ee0ff305fe4e813d70e679c8eee677ceef10052d 100644 --- a/source/App/DecoderApp/DecApp.cpp +++ b/source/App/DecoderApp/DecApp.cpp @@ -360,7 +360,9 @@ uint32_t DecApp::decode() } } #if JVET_P1019_OUTPUT_LAYER_SET - if(((m_cDecLib.getVPS() != nullptr) && (m_cDecLib.getVPS()->getMaxLayers() > 1) && (isNaluWithinTargetOutputLayerIdSet(&nalu))) || (m_cDecLib.getVPS() == nullptr)) + if(((m_cDecLib.getVPS() != nullptr) && + ((m_cDecLib.getVPS()->getMaxLayers() == 1) || (isNaluWithinTargetOutputLayerIdSet(&nalu)))) || + (m_cDecLib.getVPS() == nullptr)) #endif m_cVideoIOYuvReconFile[nalu.m_nuhLayerId].open(reconFileName, true, m_outputBitDepth, m_outputBitDepth, bitDepths.recon); // write mode #else