Ticket #1054: Ticket_1054_r0.patch

File Ticket_1054_r0.patch, 614 bytes (added by rickard, 8 years ago)
  • source/Lib/TLibCommon/TComSlice.cpp

     
    248248  while ( iterPic != rcListPic.end() )
    249249  {
    250250    pcPic = *(iterPic);
    251     if(pcPic && (pcPic->getPOC()%(1<<getSPS()->getBitsForPOC())) == (poc%(1<<getSPS()->getBitsForPOC())))
     251    if(pcPic && pcPic->getPOC()!=this->getPOC()&&(pcPic->getPOC()%(1<<getSPS()->getBitsForPOC())) == (poc%(1<<getSPS()->getBitsForPOC())))
    252252    {
    253253      if(pcPic->getIsLongTerm())
    254254      {