- Timestamp:
- 14 Nov 2014, 12:22:31 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r914 r923 770 770 { 771 771 READ_CODE( 3, uiCode, "sps_ext_or_max_sub_layers_minus1" ); uiTmp = uiCode; 772 if(!( pcSPS->getLayerId() != 0 && uiTmp == 7 )) 773 { 774 pcSPS->setMaxTLayers(uiTmp+1); 775 } 772 776 } 773 777 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r912 r923 1631 1631 { 1632 1632 TComReferencePictureSet* nRPS = pcSlice->getSPS()->getRPSList()->getReferencePictureSet(ii); 1633 for(Int jj=0; jj<nRPS->getNumberOfPictures();jj++)1633 for(Int jj=0;(jj<nRPS->getNumberOfPictures() && isSTSA==true);jj++) 1634 1634 { 1635 1635 if(nRPS->getUsed(jj)) … … 1637 1637 Int tPoc=m_pcCfg->getGOPEntry(ii).m_POC+nRPS->getDeltaPOC(jj); 1638 1638 Int kk=0; 1639 for(kk=0;kk< m_pcCfg->getGOPSize();kk++)1639 for(kk=0;kk<iGOPid;kk++) 1640 1640 { 1641 1641 if(m_pcCfg->getGOPEntry(kk).m_POC==tPoc) 1642 { 1643 isSTSA=false; 1642 1644 break; 1645 } 1643 1646 } 1644 1647 Int tTid=m_pcCfg->getGOPEntry(kk).m_temporalId; … … 1790 1793 ) 1791 1794 { 1795 if(pcSlice->isStepwiseTemporalLayerSwitchingPointCandidate(rcListPic)) 1796 { 1792 1797 Bool isSTSA=true; 1793 1798 Bool isIntra=false; … … 1812 1817 { 1813 1818 TComReferencePictureSet* nRPS = pcSlice->getSPS()->getRPSList()->getReferencePictureSet(ii); 1814 for(Int jj=0; jj<nRPS->getNumberOfPictures();jj++)1819 for(Int jj=0;(jj<nRPS->getNumberOfPictures() && isSTSA==true);jj++) 1815 1820 { 1816 1821 if(nRPS->getUsed(jj)) … … 1818 1823 Int tPoc=m_pcCfg->getGOPEntry(ii).m_POC+nRPS->getDeltaPOC(jj); 1819 1824 Int kk=0; 1820 for(kk=0; kk<m_pcCfg->getGOPSize();kk++)1825 for(kk=0;kk<iGOPid;kk++) 1821 1826 { 1822 1827 if(m_pcCfg->getGOPEntry(kk).m_POC==tPoc) 1823 1828 { 1829 isSTSA=false; 1824 1830 break; 1825 1831 } … … 1846 1852 } 1847 1853 } 1854 } 1848 1855 } 1849 1856 #endif
Note: See TracChangeset for help on using the changeset viewer.