Skip to content
Snippets Groups Projects
Commit fc9e27c7 authored by Frank Bossen's avatar Frank Bossen
Browse files

Fix #1444: fix picture output order in multilayer streams

parent 25d680b5
No related branches found
No related tags found
No related merge requests found
......@@ -659,7 +659,7 @@ void DecApp::xWriteOutput( PicList* pcListPic, uint32_t tId )
while (iterPic != pcListPic->end())
{
Picture* pcPic = *(iterPic);
if(pcPic->neededForOutput && pcPic->getPOC() > m_iPOCLastDisplay)
if(pcPic->neededForOutput && pcPic->getPOC() >= m_iPOCLastDisplay)
{
numPicsNotYetDisplayed++;
dpbFullness++;
......@@ -744,7 +744,7 @@ void DecApp::xWriteOutput( PicList* pcListPic, uint32_t tId )
{
pcPic = *(iterPic);
if(pcPic->neededForOutput && pcPic->getPOC() > m_iPOCLastDisplay &&
if(pcPic->neededForOutput && pcPic->getPOC() >= m_iPOCLastDisplay &&
(numPicsNotYetDisplayed > maxNumReorderPicsHighestTid || dpbFullness > maxDecPicBufferingHighestTid))
{
// write to file
......
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