Ticket #995: remove_bPreviousPictureDecoded.patch

File remove_bPreviousPictureDecoded.patch, 1.3 KB (added by adarsh, 10 years ago)

Patch to remove bPreviousPictureDecoded

  • C:/Users/aramasub/Documents/svn_HEVCSoftware/HM-9.2-dev_vanilla/branches/HM-9.2-dev/source/App/TAppDecoder/TAppDecTop.cpp

     
    118118     * nal unit. */
    119119    streampos location = bitstreamFile.tellg();
    120120    AnnexBStats stats = AnnexBStats();
    121     Bool bPreviousPictureDecoded = false;
    122121
    123122    vector<uint8_t> nalUnit;
    124123    InputNALUnit nalu;
     
    140139      read(nalu, nalUnit);
    141140      if( (m_iMaxTemporalLayer >= 0 && nalu.m_temporalId > m_iMaxTemporalLayer) || !isNaluWithinTargetDecLayerIdSet(&nalu)  )
    142141      {
    143         if(bPreviousPictureDecoded)
    144         {
    145           bNewPicture = true;
    146           bPreviousPictureDecoded = false;
    147         }
    148         else
    149         {
    150           bNewPicture = false;
    151         }
     142        bNewPicture = false;
    152143      }
    153144      else
    154145      {
     
    163154          bitstreamFile.seekg(location-streamoff(3));
    164155          bytestream.reset();
    165156        }
    166         bPreviousPictureDecoded = true;
    167157      }
    168158    }
    169159    if (bNewPicture || !bitstreamFile)