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

Fix output picture present in bistream checking

Update of outputPicturePresentInBitstream shall be done before all
xWriteOutput(), else picture might be outputed without this flag set.
parent 018ffb98
No related branches found
No related tags found
No related merge requests found
......@@ -329,6 +329,9 @@ uint32_t DecApp::decode()
}
if (nalu.m_nalUnitType == NAL_UNIT_EOS)
{
#if JVET_S0202_AT_LEAST_ONE_OUTPUT_PICTURE
setOutputPicturePresentInStream();
#endif
xWriteOutput( pcListPic, nalu.m_temporalId );
m_cDecLib.setFirstSliceInPicture (false);
}
......@@ -336,6 +339,9 @@ uint32_t DecApp::decode()
if (!bNewPicture && ((nalu.m_nalUnitType >= NAL_UNIT_CODED_SLICE_TRAIL && nalu.m_nalUnitType <= NAL_UNIT_RESERVED_IRAP_VCL_12)
|| (nalu.m_nalUnitType >= NAL_UNIT_CODED_SLICE_IDR_W_RADL && nalu.m_nalUnitType <= NAL_UNIT_CODED_SLICE_GDR)))
{
#if JVET_S0202_AT_LEAST_ONE_OUTPUT_PICTURE
setOutputPicturePresentInStream();
#endif
xWriteOutput( pcListPic, nalu.m_temporalId );
}
}
......
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