Ticket #1040: IDR.patch

File IDR.patch, 933 bytes (added by ksuehring, 9 years ago)
  • source/Lib/TLibDecoder/TDecTop.cpp

     
    334334    }
    335335  }
    336336
     337  //we should only get a different poc for a new picture (with CTU address==0)
     338  if (m_apcSlicePilot->isNextSlice() && m_apcSlicePilot->getPOC()!=m_prevPOC && !m_bFirstSliceInSequence && (!m_apcSlicePilot->getSliceCurStartCUAddr()==0))
     339  {
     340    printf ("Warning, the first slice of a picture might have been lost!\n");
     341  }
    337342  // exit when a new picture is found
    338   if (m_apcSlicePilot->isNextSlice() && m_apcSlicePilot->getPOC()!=m_prevPOC && !m_bFirstSliceInSequence)
     343  if (m_apcSlicePilot->isNextSlice() && (m_apcSlicePilot->getSliceCurStartCUAddr() == 0 && !m_bFirstSliceInPicture) && !m_bFirstSliceInSequence )
    339344  {
    340345    if (m_prevPOC >= m_pocRandomAccess)
    341346    {