Skip to content
Snippets Groups Projects
Commit 1b9d73fb authored by Remy Foray's avatar Remy Foray
Browse files

Fix reconstruction file creation when VPS is send with vps_max_layers_minus1 = 0

parent 284d74a4
No related branches found
No related tags found
No related merge requests found
...@@ -360,7 +360,9 @@ uint32_t DecApp::decode() ...@@ -360,7 +360,9 @@ uint32_t DecApp::decode()
} }
} }
#if JVET_P1019_OUTPUT_LAYER_SET #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 #endif
m_cVideoIOYuvReconFile[nalu.m_nuhLayerId].open(reconFileName, true, m_outputBitDepth, m_outputBitDepth, bitDepths.recon); // write mode m_cVideoIOYuvReconFile[nalu.m_nuhLayerId].open(reconFileName, true, m_outputBitDepth, m_outputBitDepth, bitDepths.recon); // write mode
#else #else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment