Ticket #1226: BUGFIX_TEMPORALID_LEADINGPIC.patch

File BUGFIX_TEMPORALID_LEADINGPIC.patch, 1.0 KB (added by adarsh, 11 years ago)
  • C:/Users/aramasub/Documents/svn_HEVCSoftware/HM-12.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

     
    545545    }
    546546    pcSlice->applyReferencePictureSet(rcListPic, pcSlice->getRPS());
    547547   
    548     if(pcSlice->getTLayer() > 0)
     548    if(pcSlice->getTLayer() > 0
     549      &&  !( pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_RADL_N     // Check if not a leading picture
     550          || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_RADL_R
     551          || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_RASL_N
     552          || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_RASL_R )
     553        )
    549554    {
    550555      if(pcSlice->isTemporalLayerSwitchingPoint(rcListPic) || pcSlice->getSPS()->getTemporalIdNestingFlag())
    551556      {